display: Fix compiler warning

Don't leave a variable uninitialized in case we don't find a matching
surface.
This commit is contained in:
Florian Müllner 2014-03-25 16:27:09 +01:00
parent 7484d540cd
commit 71be7e8493

View File

@ -1629,7 +1629,7 @@ void
meta_display_sync_wayland_input_focus (MetaDisplay *display) meta_display_sync_wayland_input_focus (MetaDisplay *display)
{ {
MetaWaylandCompositor *compositor = meta_wayland_compositor_get_default (); MetaWaylandCompositor *compositor = meta_wayland_compositor_get_default ();
MetaWindow *focus_window; MetaWindow *focus_window = NULL;
if (meta_grab_op_is_wayland (display->grab_op)) if (meta_grab_op_is_wayland (display->grab_op))
focus_window = NULL; focus_window = NULL;