mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Handle compositor being disabled and don't crash.
2008-03-19 Iain Holmes <iain@gnome.org> * src/core/compositor.c (meta_compositor_set_active_window): Handle compositor being disabled and don't crash. svn path=/trunk/; revision=3655
This commit is contained in:
parent
f2b400b82c
commit
915192ca9f
@ -1,3 +1,8 @@
|
||||
2008-03-19 Iain Holmes <iain@gnome.org>
|
||||
|
||||
* src/core/compositor.c (meta_compositor_set_active_window): Handle
|
||||
compositor being disabled and don't crash.
|
||||
|
||||
2008-03-19 Iain Holmes <iain@gnome.org>
|
||||
|
||||
* src/core/compositor.c (meta_compositor_set_active_window): Add a
|
||||
|
@ -2744,11 +2744,19 @@ meta_compositor_set_active_window (MetaCompositor *compositor,
|
||||
MetaWindow *window)
|
||||
{
|
||||
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||
MetaDisplay *display = compositor->display;
|
||||
Display *xdisplay = display->xdisplay;
|
||||
MetaDisplay *display;
|
||||
Display *xdisplay;
|
||||
MetaCompWindow *old_focus = NULL, *new_focus = NULL;
|
||||
MetaCompScreen *info = screen->compositor_data;
|
||||
MetaWindow *old_focus_win = info->focus_window;
|
||||
MetaCompScreen *info;
|
||||
MetaWindow *old_focus_win;
|
||||
|
||||
if (compositor == NULL)
|
||||
return;
|
||||
|
||||
display = compositor->display;
|
||||
xdisplay = display->xdisplay;
|
||||
info = screen->compositor_data;
|
||||
old_focus_win = info->focus_window;
|
||||
|
||||
if (old_focus_win)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user