Bug 264472

Summary: Magic lamp effect minimizes to mouse position
Product: [Plasma] kwin Reporter: felix_mauch
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: vermette
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description felix_mauch 2011-01-27 13:43:37 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

When using the magic lamp effect on minimizing windows, the window gets minimized to the closest position at a border compared to the current position of the mouse pointer.
So when clicking on the minimize-button in the top-right corner, the window gets minimized to the top right corner. When using a key shortcut, it leads to the closest border position.
Also on re-maximizing it takes the border-position, when calling the window by keyboard like with ALT+TAB.

Is this a wanted behaviour or a bug? I never noticed it in former versions and it feels a bit strange to me.

Reproducible: Always

Steps to Reproduce:
Activate the magic lamp effect, minimize a window and re-call it with ALT+TAB.

Actual Results:  
The window gets minimized/maximized to/from the next border-position of the mouse pointer.

Expected Results:  
Minimize/Maximize to/from the corresponding task manager entry.
Comment 1 Thomas Lübking 2011-01-27 19:17:52 UTC

*** This bug has been marked as a duplicate of bug 242772 ***
Comment 2 Thomas Lübking 2011-01-27 19:19:24 UTC
the pointer is used as "last resort" if the taskbar doesn't hint where to minimize the window (eg. because of a bug or there just is no taskbar at all)
Comment 3 Ken Vermette 2012-07-31 17:10:01 UTC
When the task manager needs to re-draw its contents, E.g. you are only showing tasks on one desktop and you change desktops, then it seems to "lose track" of the window hints and reverts to the mouse behavior.