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.
dev
Kristian Høgsberg 11 years ago
parent 7ab139ce16
commit 0d94f41b44
  1. 1
      src/shell.c

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

Loading…
Cancel
Save