Bug 222980

Summary: Windows in upper right corner cannot be closed by moving mose in the upmost rightmost position
Product: [Plasma] Oxygen Reporter: Christoph Bartoschek <bartoschek>
Component: win decoAssignee: Hugo Pereira Da Costa <hugo.pereira.da.costa>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cbo, hugo.pereira.da.costa
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christoph Bartoschek 2010-01-16 14:59:58 UTC
Version:            (using KDE 4.3.4)
Installed from:    openSUSE RPMs

This is a usability bug:

I have two windows:

1. A maximized window in the back.
2. A normal window that touches the upper and right border of the screen in the forground.

To close the second window I go with the mouse pointer to the top right position and click with the left button.

I expect that the second window is closed as it is top/right aligned. However the first one is closed.

The reason is that the decoration is rounded and therefore the pixels of the first window appear in the top/right corner. 

A solution to the problem would be: As soon as the window touches a corner of the screen the decroation changes in the corner and fills it.

The same is done for maximized windows that touch all four corners.
Comment 1 Camilla Boemann 2010-01-18 01:28:14 UTC
no i don't like that idea.

it should be possible to grap the upper and/or right resize handle
Comment 2 Christoph Bartoschek 2010-01-18 09:34:53 UTC
Ok. You are right. What about filling the corner and having the handles there? 

Every solution is desirable that prevents the accidental closing of windows below the top one.
Comment 3 Camilla Boemann 2010-01-18 10:32:55 UTC
that makes it a duplicate of another bug
Comment 4 Hugo Pereira Da Costa 2010-03-25 04:18:07 UTC
One question to Christoph: 
- Are you using compositing (e.g. with oxygen decoration fancy shadows) ?

when compositing is enabled I think the issue you report cannot happen (cause the button hit area is actually a square, despite the (composited) round corners.

when compositing is disabled yes there is an issue because the active area of the top window do indeed match the (pixelized) round corner. Now, you can't really make the corner non-round (would be quite ugly), and on top of that, the mouse pointer really change (between corner-resize to normal) depending on whether the mouse is over the front window or the back maximized window. Isn't that enough ?
Comment 5 Christoph Bartoschek 2010-03-25 20:02:38 UTC
I do not have compositing as it does not work well with the radeon driver on my card.

Closing the window happens so fast that I do not see the changing cursor early enough.

I do not think that changing the corner would be ugly because maximized windows already do this. And I would only fill the corners that touch the corners of the screen.
Comment 6 Hugo Pereira Da Costa 2010-03-25 20:17:48 UTC
> I do not think that changing the corner would be ugly because maximized windows
> already do this. And I would only fill the corners that touch the corners of
> the screen.
>
>    
Ok for the ugliness (this is a relative concept anyway). However, it 
will create flicker, due to changing the window "mask", every time a 
window will get close (approaching or leaving) to the top left or 
top-right corner (depending on where people put their close button).

Anyway, I'll give it a shot and will report back.
Comment 7 Christoph Bartoschek 2011-01-20 21:56:32 UTC
Any updates on this? 

I have now a bigger display and it gets worse, because I now use more windows non-maximized but moved to the upper right corner. The result is that maximized windows in the background are closed about 3 times a day.
Comment 8 Hugo Pereira Da Costa 2011-01-20 22:04:14 UTC
no. No update. Its actually far for trivial to fix, and I've been busy with other things.

You can actually fix the issue by changing: 
Systemsettings -> Window Behavior -> Window Behavior -> Moving -> Checkbox 
"Display borders on maximized windows"

this way, no window will ever get closed by going to the corner of the screen. 
(neither the normal ones, nor the maximized one behind)
Comment 9 Hugo Pereira Da Costa 2011-09-23 13:01:26 UTC

*** This bug has been marked as a duplicate of bug 161107 ***