wio

a wayland wm stylised after plan9 rio - forked from git.sr.ht/~srcmpwn/wio
git clone git://src.gearsix.net/wio
Log | Files | Refs | Atom | Submodules | README | LICENSE

commit 9f0790a486f2cfc3d4c248536f7c8986a236dfcf
parent bd54842bdf91f241faf7c47968711200c478a4ce
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Apr 2019 23:43:03 -0400

Don't pass wio pointer events to clients

So that things like starting an interactive move don't translate to
right clicking your application

Diffstat:
Minput.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/input.c b/input.c @@ -184,6 +184,7 @@ static void handle_button_internal( struct wio_view *view = wio_view_at(server, server->cursor->x, server->cursor->y, &surface, &sx, &sy); if (view != NULL) { + wio_view_focus(view, surface); server->interactive.view = view; server->interactive.sx = (int)sx; server->interactive.sy = (int)sy; @@ -223,11 +224,11 @@ void server_cursor_button(struct wl_listener *listener, void *data) { server, server->cursor->x, server->cursor->y, &surface, &sx, &sy); if (server->input_state == INPUT_STATE_NONE && view) { wio_view_focus(view, surface); + wlr_seat_pointer_notify_button(server->seat, + event->time_msec, event->button, event->state); } else { handle_button_internal(server, event); } - wlr_seat_pointer_notify_button(server->seat, - event->time_msec, event->button, event->state); } void server_cursor_axis(struct wl_listener *listener, void *data) {