Bug 421937

Summary: In GTK applications that use CSD, pointing the cursor to the top right edge of the window doesn't select the close button
Product: [Plasma] Breeze Reporter: Lua <lv215bd5>
Component: gtk themeAssignee: Janet Blackquill <uhhadd>
Status: RESOLVED DUPLICATE    
Severity: normal CC: matejm98mthw, nate, plasma-bugs
Priority: NOR    
Version: 5.21.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Close button not being in the hover state.
margin

Description Lua 2020-05-22 22:51:44 UTC
Created attachment 128702 [details]
Close button not being in the hover state.

SUMMARY
In applications that use CSD, pointing cursor to the top right edge of the window doesn't select the close button.

STEPS TO REPRODUCE
1. Install a Gnome application that uses CSD, like Firefox (with no titlebar setting enabled, Totem video player, gnome-disk-utility);
2. Maximize the window;
3. Pointer the cursor to the top right edge of the screen.

OBSERVED RESULT
The close button will not be in the hover state.

EXPECTED RESULT
The close button being in the hover state when pointing the cursor to the top right edge of the screen like in native KDE apps.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.04
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Comment 1 Lua 2020-06-22 19:16:23 UTC
Is there anyone who has this bug? I'm not seeing anyway to fix it ):
Comment 2 Matej Mrenica 2020-08-09 07:40:40 UTC
This is a known issue, but it's kind of intentional. Titlebar buttons should only react when you hover over them, and unluckily Breeze theme has small buttons that are far away from the corner (as opposed to Qogir-win theme for example). This issue could be solved on a Kwin level if all clicks to the top-right corner would be send to the currently active application as a signal to close the app. So anyway, this is either theming or Kwin issue.
Comment 3 David Edmundson 2020-08-09 09:10:16 UTC
>This issue could be solved on a Kwin level

It cannot, the close button could be anywhere, top right could be a valid input region.

If there is any issue it is in GTK or theming.
Comment 4 Nate Graham 2020-08-09 13:33:39 UTC
Yep, it's a theme issue.

*** This bug has been marked as a duplicate of bug 414777 ***
Comment 5 Lua 2021-04-29 20:08:26 UTC
Created attachment 138011 [details]
margin

This still happens in KDE 5.21.4. It seems that there's a margin in the window buttons panel. If Qogir theme (square version) is applied, this problem gets more noticeable.