meta_display_screen_for_root is quite capable of returning NULL.
2008-03-26 Thomas Thurman <tthurman@gnome.org> * src/core/display.c (event_callback): meta_display_screen_for_root is quite capable of returning NULL. svn path=/trunk/; revision=3664
This commit is contained in:
parent
1e325bcbdf
commit
0130c0d5b6
@ -1,3 +1,8 @@
|
||||
2008-03-26 Thomas Thurman <tthurman@gnome.org>
|
||||
|
||||
* src/core/display.c (event_callback): meta_display_screen_for_root
|
||||
is quite capable of returning NULL.
|
||||
|
||||
2008-03-25 Thomas Thurman <tthurman@gnome.org>
|
||||
|
||||
* src/core/display.c (meta_display_queue_retheme_all_windows,
|
||||
|
@ -1798,6 +1798,8 @@ event_callback (XEvent *event,
|
||||
"Syncing to old stack positions.\n");
|
||||
screen =
|
||||
meta_display_screen_for_root (display, event->xany.window);
|
||||
|
||||
if (screen!=NULL)
|
||||
meta_stack_set_positions (screen->stack,
|
||||
display->grab_old_window_stacking);
|
||||
}
|
||||
@ -1988,12 +1990,11 @@ event_callback (XEvent *event,
|
||||
* screen; this will make keybindings and workspace-launched items
|
||||
* actually appear on the right screen.
|
||||
*/
|
||||
if (display->active_screen !=
|
||||
meta_display_screen_for_root (display, event->xcrossing.root))
|
||||
{
|
||||
MetaScreen *new_screen;
|
||||
new_screen = meta_display_screen_for_root (display,
|
||||
event->xcrossing.root);
|
||||
MetaScreen *new_screen =
|
||||
meta_display_screen_for_root (display, event->xcrossing.root);
|
||||
|
||||
if (new_screen != NULL && display->active_screen != new_screen)
|
||||
meta_workspace_focus_default_window (new_screen->active_workspace,
|
||||
NULL,
|
||||
event->xcrossing.time);
|
||||
|
Loading…
Reference in New Issue
Block a user