Bug 460668

Summary: Cannot resize CSD GTK windows vertically or horizontally with middle/right click on maximize/restore button
Product: [Plasma] kwin Reporter: Patrick Silva <bugseforuns>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate
Priority: NOR    
Version: 5.26.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.