https://bugs.kde.org/show_bug.cgi?id=499576

            Bug ID: 499576
           Summary: [Wayland] zwp_tablet_tool_v2.proximity_in() event is
                    sent with the parent surface, not the subsurface where
                    the event actually occurred
    Classification: Plasma
           Product: kwin
           Version: 6.2.5
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: acct...@mail.rvvm.ing
  Target Milestone: ---

SUMMARY
My project uses subsurfaces attached to the layer-shell overlay
(wlr-layer-shell protocol) with an empty input region. When the tablet tool's
cursor enters that subsurface, zwp_tablet_tool_v2.proximity_in() is sent with
the parent wl_surface (which, in this case, is the overlay with the empty input
region). The protocol description for tablet_v2 doesn't mention how focus works
with subsurfaces, but since it's a pointer-like device, I expect the same
behavior as with wl_pointer

STEPS TO REPRODUCE
1. Create a layer-shell overlay (e.g., wl_surface object ID 21) and attach
subsurface (e.g., wl_surface object ID #300).
2. Move the tablet tool's cursor over the subsurface.
3. Check the console output while running with WAYLAND_DEBUG=1 or log the
pointer of the received wl_surface.

OBSERVED RESULT
[1869288.535] {Default Queue} zwp_tablet_tool_v2#4278190081.proximity_in(42833,
zwp_tablet_v2#4278190080, wl_surface#21)

EXPECTED RESULT
zwp_tablet_tool_v2.proximity_in with wl_surface#300

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.12.10-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2


ADDITIONAL INFORMATION
Project that can be used to demonstrate the issue:
https://github.com/CluelessCatBurger/wl_shimeji

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to