diff options
author | raveit65 <[email protected]> | 2012-08-01 13:16:42 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2012-08-01 13:16:42 +0200 |
commit | d97bf7aab0358d423cfc2b3a00079662fc821dff (patch) | |
tree | 1440f14f950a36dc2689cf3e76ec08534897d159 /src/core/display.c | |
parent | 4877f47e6d29289e49a4e1b4a12e8b736711678c (diff) | |
download | marco-d97bf7aab0358d423cfc2b3a00079662fc821dff.tar.bz2 marco-d97bf7aab0358d423cfc2b3a00079662fc821dff.tar.xz |
apply Should-set-RestartStyleHint-to-RestartIfRunning-wh.patch
Diffstat (limited to 'src/core/display.c')
-rw-r--r-- | src/core/display.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/core/display.c b/src/core/display.c index 647581f5..f07a4e69 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -936,7 +936,7 @@ meta_display_close (MetaDisplay *display, meta_compositor_destroy (display->compositor); g_free (display); - display = NULL; + the_display = NULL; meta_quit (META_EXIT_SUCCESS); } @@ -4954,13 +4954,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, + meta_display_unmanage_screen (display, screen, event->xselectionclear.time); - if (!display) - the_display = NULL; - /* display and screen may both be invalid memory... */ return; @@ -4982,11 +4979,10 @@ process_selection_clear (MetaDisplay *display, } void -meta_display_unmanage_screen (MetaDisplay **displayp, +meta_display_unmanage_screen (MetaDisplay *display, MetaScreen *screen, guint32 timestamp) { - MetaDisplay *display = *displayp; meta_verbose ("Unmanaging screen %d on display %s\n", screen->number, display->name); @@ -4997,10 +4993,7 @@ meta_display_unmanage_screen (MetaDisplay **displayp, display->screens = g_slist_remove (display->screens, screen); if (display->screens == NULL) - { - meta_display_close (display, timestamp); - *displayp = NULL; - } + meta_display_close (display, timestamp); } void |