]> git.mdlowis.com Git - proto/labwc.git/commit
view: validate move/resize request from clients
authortokyo4j <hrak1529@gmail.com>
Thu, 7 Mar 2024 15:53:39 +0000 (00:53 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 7 Mar 2024 20:30:50 +0000 (20:30 +0000)
commite00f7cd6db3445304027828b549aa0f873a03bcf
treedbe924f15366f2496b6702465e1db9a9b179ed64
parentf6d588507e2cae47631fc7ff1bc16eeeb775b637
view: validate move/resize request from clients

Move/resize requests from xwayland views and xdg toplevels should be
ignored when the view is not pressed.

This is relevant for touchpad taps with <tapAndDrag> disabled.

When the user taps the client surface (e.g. chromium and mpv) with the
setting above, libinput sends button press & release signals so quickly
that the compositor receives move/resize request from the client AFTER
the button release signal is processed, so `interactive_finish()` is
never called.
include/labwc.h
src/xdg.c
src/xwayland.c