Bug 440166

Summary: Dragging GTK4 Windows by HeaderBar or WindowHandle causes weird behavior
Product: [Plasma] kwin Reporter: Mufeed Ali <kdebugs.undead>
Component: decorationsAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: video showing bug

Description Mufeed Ali 2021-07-22 19:37:46 UTC
Created attachment 140265 [details]
video showing bug

SUMMARY
After dragging a GTK4 window by GtkHeaderBar or GtkWindowHandle, the window remains in a non-interactive state where only dragging is possible until after the first click. i.e. the first click on any other widget is ignored.

STEPS TO REPRODUCE
1. Open gtk4-demo
2. Begin dragging the window by the HeaderBar.
3. Then, try to click anywhere outside the HeaderBar in the window.

OBSERVED RESULT
The first click anywhere outside the HeaderBar is ignored. This also allows the user to drag the window from anywhere on the window until after the first click (by clicking, not dragging, anywhere else first).

EXPECTED RESULT
The first click outside the HeaderBar should activate the widget that the cursor was hovered over.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 34 KDE
(available in About System)
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
The bug isn't present on Wayland, isn't present on GNOME X11 and is also present with KWin 5.22.3.
Comment 1 Mufeed Ali 2021-07-22 19:57:13 UTC
I had reported this bug on GTK's tracker before: https://gitlab.gnome.org/GNOME/gtk/-/issues/3858 . But now, I'm not sure if it's a GTK bug or a KWin bug because I can't seem to reproduce it on GNOME X11 and now I'm feeling unsure about if I had really reproduced the same bug before on GNOME X11 at all. Hence why I'm reporting here.
Comment 2 David Edmundson 2025-01-15 23:16:42 UTC
Please reopen if an issue persists. I don't believe it's an issue anymore.