sway icon indicating copy to clipboard operation
sway copied to clipboard

Sway drags windows that set cursor hitthrough/passthrough/input_region

Open Cre3per opened this issue 1 year ago • 1 comments

This is already fixed on master (currently d19810eba8959f052d91fd6609cef6adf36b3951).
I'm opening this ticket for documentation purposes, because it took me several hours to figure out where this bug was coming from, and to make sure the bug doesn't get reintroduced. Feel free to resolve if you don't feel a need for further action.

  • Sway Version: master d19810eba8959f052d91fd6609cef6adf36b395 (Fixed)

  • Sway Version: 1.9-rc4 6cbc83fd67ba796f95e4dca13a8a489fff68661a (Broken)

  • Debug Log:

    • https://gist.github.com/Cre3per/6b6ae807b92d7b8936bd6af32892bb2d (2 logs)
  • Configuration File:

    • default configuration (changed $mod and $term)
  • Stack Trace:

    • no crash
  • Description:

    • Create a window (A) with mouse input (e.g. a text editor or browser)
    • Create a window (B) which sets wl_surface_set_input_region(surface, {0,0,0,0}) (pseudocode)
    • Make window B floating
    • Try to click/drag through window B into window A
    • Expect: window A handles cursor events
    • Is: window B is dragged

A sample for window B can be found at https://github.com/Cre3per/sway-hittest-bug/tree/main
git clone + cargo run

Cre3per avatar Feb 18 '24 10:02 Cre3per

This seems to be fixed for me with the sway-git package on the AUR. v1.10.r7343.9704152-1

purplg avatar Jun 14 '24 01:06 purplg

I just came across this (on sway v1.9), I think this is the same as #6341 and #6935

mgunyho avatar Aug 12 '24 19:08 mgunyho

Should be fixed by scene-graph, please re-open if you can reproduce with Sway master.

emersion avatar Aug 12 '24 19:08 emersion