pointer/keyboard: fix setting focus
Set focus to NULL after using the variable
This commit is contained in:

committed by
Jasper St. Pierre

parent
c964ef4e01
commit
17462c21e8
@@ -328,9 +328,6 @@ meta_wayland_pointer_set_focus (MetaWaylandPointer *pointer,
|
||||
|
||||
if (pointer->focus_surface)
|
||||
{
|
||||
wl_list_remove (&pointer->focus_surface_listener.link);
|
||||
pointer->focus_surface = NULL;
|
||||
|
||||
if (pointer->focus_resource)
|
||||
{
|
||||
if (pointer->focus_surface->resource)
|
||||
@@ -342,10 +339,11 @@ meta_wayland_pointer_set_focus (MetaWaylandPointer *pointer,
|
||||
}
|
||||
|
||||
wl_list_remove (&pointer->focus_resource_listener.link);
|
||||
|
||||
pointer->focus_surface = NULL;
|
||||
pointer->focus_resource = NULL;
|
||||
}
|
||||
|
||||
wl_list_remove (&pointer->focus_surface_listener.link);
|
||||
pointer->focus_surface = NULL;
|
||||
}
|
||||
|
||||
if (surface != NULL)
|
||||
|
Reference in New Issue
Block a user