mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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>
|
2008-03-25 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
* src/core/display.c (meta_display_queue_retheme_all_windows,
|
* src/core/display.c (meta_display_queue_retheme_all_windows,
|
||||||
|
@ -1798,6 +1798,8 @@ event_callback (XEvent *event,
|
|||||||
"Syncing to old stack positions.\n");
|
"Syncing to old stack positions.\n");
|
||||||
screen =
|
screen =
|
||||||
meta_display_screen_for_root (display, event->xany.window);
|
meta_display_screen_for_root (display, event->xany.window);
|
||||||
|
|
||||||
|
if (screen!=NULL)
|
||||||
meta_stack_set_positions (screen->stack,
|
meta_stack_set_positions (screen->stack,
|
||||||
display->grab_old_window_stacking);
|
display->grab_old_window_stacking);
|
||||||
}
|
}
|
||||||
@ -1988,12 +1990,11 @@ event_callback (XEvent *event,
|
|||||||
* screen; this will make keybindings and workspace-launched items
|
* screen; this will make keybindings and workspace-launched items
|
||||||
* actually appear on the right screen.
|
* actually appear on the right screen.
|
||||||
*/
|
*/
|
||||||
if (display->active_screen !=
|
|
||||||
meta_display_screen_for_root (display, event->xcrossing.root))
|
|
||||||
{
|
{
|
||||||
MetaScreen *new_screen;
|
MetaScreen *new_screen =
|
||||||
new_screen = meta_display_screen_for_root (display,
|
meta_display_screen_for_root (display, event->xcrossing.root);
|
||||||
event->xcrossing.root);
|
|
||||||
|
if (new_screen != NULL && display->active_screen != new_screen)
|
||||||
meta_workspace_focus_default_window (new_screen->active_workspace,
|
meta_workspace_focus_default_window (new_screen->active_workspace,
|
||||||
NULL,
|
NULL,
|
||||||
event->xcrossing.time);
|
event->xcrossing.time);
|
||||||
|
Loading…
Reference in New Issue
Block a user