Bug 460668 - Cannot resize CSD GTK windows vertically or horizontally with middle/right click on maximize/restore button
Summary: Cannot resize CSD GTK windows vertically or horizontally with middle/right cl...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.26.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-18 16:47 UTC by Patrick Silva
Modified: 2022-10-18 19:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-10-18 16:47:05 UTC
STEPS TO REPRODUCE
1. use Wayland
2. open Firefox in CSD mode
3. try to resize Firefox vertically with middle click on maximize/restore button or horizontally with right-click on the same button

OBSERVED RESULT
nothing happens

EXPECTED RESULT
the window is resized vertically (middle-click) or horizontally (right-click)

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.1
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 1 Nate Graham 2022-10-18 19:11:04 UTC
The actual buttons themselves are provided by Firefox, not KWin. So KWin's features won't work there. This is just one of the drawbacks of using CSDs. If you want this functionality, you'll have to disable Firefox's CSD mode and bring back the KWin-provided titlebar.
Comment 2 Patrick Silva 2022-10-18 19:27:32 UTC
Gnome Disks and Nautilus file manager are also affected. Is this a gtk issue?
Comment 3 Nate Graham 2022-10-18 19:33:41 UTC
It's just a CSD issue in general. CSD apps provide their own minimize/maximize/close buttons, which means they're responsible for the features present in those buttons.

With SSD apps, KWin provides the buttons, and it is therefore free to add cool features like the ones you're looking for. But those CSD apps don't implement those same features.