[metacity] display: remove meta_display_screen_for_root
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] display: remove meta_display_screen_for_root
- Date: Tue, 4 Jul 2017 09:16:35 +0000 (UTC)
commit c79e69bb44927978003a8696800c3fd5ba9b32d7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Jul 4 12:13:16 2017 +0300
display: remove meta_display_screen_for_root
src/core/display.c | 12 +-----------
src/include/display.h | 2 --
2 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index ca1002b..7044557 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -876,16 +876,6 @@ meta_display_close (MetaDisplay *display,
meta_quit ();
}
-MetaScreen*
-meta_display_screen_for_root (MetaDisplay *display,
- Window xroot)
-{
- if (display->screen->xroot == xroot)
- return display->screen;
-
- return NULL;
-}
-
/* Grab/ungrab routines taken from fvwm */
void
meta_display_grab (MetaDisplay *display)
@@ -1548,7 +1538,7 @@ handle_window_focus_event (MetaDisplay *display,
}
else if (meta_display_xwindow_is_a_no_focus_window (display, event->xany.window))
window_type = "no_focus_window";
- else if (meta_display_screen_for_root (display, event->xany.window))
+ else if (event->xany.window == display->screen->xroot)
window_type = "root window";
else
window_type = "unknown window";
diff --git a/src/include/display.h b/src/include/display.h
index 192bd27..b3951d0 100644
--- a/src/include/display.h
+++ b/src/include/display.h
@@ -32,8 +32,6 @@ MetaScreen *meta_display_get_screen (MetaDisplay *display);
gboolean meta_display_has_shape (MetaDisplay *display);
-MetaScreen *meta_display_screen_for_root (MetaDisplay *display,
- Window xroot);
MetaWindow *meta_display_get_focus_window (MetaDisplay *display);
int meta_display_get_damage_event_base (MetaDisplay *display);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]