mate-desktop / marco

MATE default window manager
https://mate-desktop.org
GNU General Public License v2.0
193 stars 86 forks source link

Cannot move window if keyboard is grabbed #704

Open CendioOssman opened 2 years ago

CendioOssman commented 2 years ago

Expected behaviour

Click and drag title bar of a window whilst the application has a keyboard grab (XGrabKeyboard()) active. The window should move and follow the cursor.

Actual behaviour

Nothing happens.

Steps to reproduce the behaviour

  1. Create window
  2. Call XGrabKeyboard()
  3. Let the user try to click and drag the title bar

MATE general version

1.24.1

Package version

marco-1.22.4-3.el8.x86_64

Linux Distribution

RHEL 8

Link to bugreport of your Distribution (requirement)

Not included in RHEL, so haven't filed a report there. However I have reported a similar thing to GNOME, as the bug lives on in mutter:

https://gitlab.gnome.org/GNOME/mutter/-/issues/2021

More details can be found there.

Relevant code from marco:

https://github.com/mate-desktop/marco/blob/a905a4d11aa25be55bbe3b22d9c7b23b46a50e0c/src/core/display.c#L3632-L3639