[metacity] display: remove meta_display_unmanage_screen
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] display: remove meta_display_unmanage_screen
- Date: Fri, 3 Mar 2017 01:32:33 +0000 (UTC)
commit 66018e78527574060af05733890f4c92fc31622c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Mar 3 03:17:40 2017 +0200
display: remove meta_display_unmanage_screen
src/core/display-private.h | 4 ----
src/core/display.c | 23 ++++-------------------
2 files changed, 4 insertions(+), 23 deletions(-)
---
diff --git a/src/core/display-private.h b/src/core/display-private.h
index a94f59c..6f34249 100644
--- a/src/core/display-private.h
+++ b/src/core/display-private.h
@@ -312,10 +312,6 @@ MetaScreen* meta_display_screen_for_xwindow (MetaDisplay *display,
void meta_display_grab (MetaDisplay *display);
void meta_display_ungrab (MetaDisplay *display);
-void meta_display_unmanage_screen (MetaDisplay *display,
- MetaScreen *screen,
- guint32 timestamp);
-
void meta_display_unmanage_windows_for_screen (MetaDisplay *display,
MetaScreen *screen,
guint32 timestamp);
diff --git a/src/core/display.c b/src/core/display.c
index 9278381..1091a2f 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -5047,9 +5047,10 @@ process_selection_clear (MetaDisplay *display,
meta_verbose ("Got selection clear for screen %d on display %s\n",
screen->number, display->name);
- meta_display_unmanage_screen (display,
- screen,
- event->xselectionclear.time);
+ meta_verbose ("Unmanaging screen %d on display %s\n",
+ screen->number, display->name);
+
+ meta_display_close (display, event->xselectionclear.time);
/* display and screen may both be invalid memory... */
@@ -5072,22 +5073,6 @@ process_selection_clear (MetaDisplay *display,
}
void
-meta_display_unmanage_screen (MetaDisplay *display,
- MetaScreen *screen,
- guint32 timestamp)
-{
- meta_verbose ("Unmanaging screen %d on display %s\n",
- screen->number, display->name);
-
- g_return_if_fail (display->screen != NULL);
-
- meta_screen_free (screen, timestamp);
- display->screen = NULL;
-
- meta_display_close (display, timestamp);
-}
-
-void
meta_display_unmanage_windows_for_screen (MetaDisplay *display,
MetaScreen *screen,
guint32 timestamp)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]