Bug 463088 - [Wayland] Pointer confinement not working with subsurfaces
Summary: [Wayland] Pointer confinement not working with subsurfaces
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
: 452938 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-12-15 21:38 UTC by Behzad A
Modified: 2024-06-07 20:05 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Wine-Wayland_Swat4.mp4 (3.79 MB, video/mp4)
2022-12-15 21:38 UTC, Behzad A
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Behzad A 2022-12-15 21:38:44 UTC
Created attachment 154611 [details]
Wine-Wayland_Swat4.mp4

This issue is described by the Wine-Wayland display driver developer at https://www.winehq.org/mailman3/hyperkitty/list/wine-devel@winehq.org/thread/5GQWFP7MC6GQTL2KLAV6F6RUMOE3QULI/ And https://gitlab.gnome.org/GNOME/mutter/-/issues/2223, and also this issue is occurring in Kwin-Wayland(as you can see in attached video).

For testing on openSUSE TW, you can install Wine-Wayland from https://download.opensuse.org/repositories/home:/BehzadA:/Wine_Wayland/openSUSE_Tumbleweed/ repo(https://build.opensuse.org/package/show/home:BehzadA:Wine_Wayland/wine) and download the Swat4 demo from https://www.gamepressure.com/games/swat-4/z01b58, and set the game resolution lower than your display native resolution(For native Wayland driver you must set "DISPLAY= WAYLAND_DISPLAY=wayland-0" Environment Variable).

Kwin Info
https://pastebin.com/qh7Fx54Y

System Info
System:
  Host: localhost.localdomain Kernel: 6.1.0-1.gd1335c0-default arch: x86_64
    bits: 64 compiler: gcc v: 12.2.1 Desktop: KDE Plasma v: 5.26.80 tk: Qt
    v: 5.15.7 wm: kwin_wayland dm: SDDM Distro: openSUSE Tumbleweed 20221210
CPU:
  Info: dual core model: Intel Core2 Duo T6670 bits: 64 type: MCP arch: Penryn
    rev: A cache: L1: 128 KiB L2: 2 MiB
  Speed (MHz): avg: 2105 high: 2193 min/max: 1200/2201 boost: enabled cores:
    1: 2018 2: 2193 bogomips: 8771
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx
Graphics:
  Device-1: Intel Mobile 4 Series Integrated Graphics vendor: Sony
    driver: i915 v: kernel arch: Gen-5 ports: active: LVDS-1 empty: DP-1,VGA-1
    bus-ID: 00:02.0 chip-ID: 8086:2a42
  Device-2: Ricoh Sony Vaio Integrated Webcam type: USB driver: uvcvideo
    bus-ID: 1-2:2 chip-ID: 05ca:18b3
  Display: wayland server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.5
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
    alternate: intel dri: crocus gpu: i915 display-ID: 0
  Monitor-1: LVDS-1 res: 1280x800 size: N/A
  API: OpenGL v: 2.1 Mesa 23.0.0-devel-git-e20564cf renderer: Mesa Mobile
    Intel GM45 Express (CTG) direct render: Yes
Comment 1 Vlad Zahorodnii 2023-01-06 08:50:29 UTC
kwin only honors pointer constraints set on the main surface, but setting pointer constraints on subsurfaces is also a niche case.
Comment 2 Sergio 2023-02-17 11:12:36 UTC
Still an issue in 5.26.90.
It might be easier to reproduce using the following sample client in the Weston project: https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1164
Comment 3 aidas957 2024-03-09 21:25:39 UTC
This is still an issue in 6.0.1 (Arch Linux has the constraints demo included in weston package as weston-constraints which I used to test the broken behavior)
Comment 4 Zamundaaa 2024-06-07 20:05:30 UTC
*** Bug 452938 has been marked as a duplicate of this bug. ***