shell.c: Don't overwrite focus surface argument in activate_binding()

We need either the pointer or touch focus, which is passed in to
activate_binding().  Don't overwrite this with the pointer focus.
This commit is contained in:
Kristian Høgsberg 2013-10-24 16:29:51 -07:00
parent 7ab139ce16
commit 0d94f41b44

View File

@ -3241,7 +3241,6 @@ activate_binding(struct weston_seat *seat,
if (!focus)
return;
focus = seat->pointer->focus->surface;
if (is_black_surface(focus, &main_surface))
focus = main_surface;