Bug 440166 - Dragging GTK4 Windows by HeaderBar or WindowHandle causes weird behavior
Summary: Dragging GTK4 Windows by HeaderBar or WindowHandle causes weird behavior
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-22 19:37 UTC by Mufeed Ali
Modified: 2025-01-15 23:16 UTC (History)
2 users (show)

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


Attachments
video showing bug (2.16 MB, video/webm)
2021-07-22 19:37 UTC, Mufeed Ali
Details

Note You need to log in before you can comment on or make changes to this 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.