mirror of
https://github.com/labwc/labwc.git
synced 2026-02-08 10:06:59 -05:00
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.
This commit is contained in:
parent
f6d588507e
commit
e00f7cd6db
3 changed files with 16 additions and 4 deletions
|
|
@ -135,6 +135,10 @@ struct seat {
|
|||
* This allows to keep dragging a scrollbar or selecting text even
|
||||
* when moving outside of the window.
|
||||
*
|
||||
* It is also used to:
|
||||
* - determine the target view for action in "Drag" mousebind
|
||||
* - validate view move/resize requests from CSD clients
|
||||
*
|
||||
* Both (view && !surface) and (surface && !view) are possible.
|
||||
*/
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue