Bug 328614

Summary: Maximized windows shown on both displays
Product: [Unmaintained] plasma4 Reporter: Victor Varvaryuk <victor.varvariuc>
Component: widget-taskbarAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: hein, kwin-bugs-null
Priority: NOR    
Version First Reported In: 4.11.2   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: display configuration

Description Victor Varvaryuk 2013-12-10 07:55:38 UTC
In Task Switcher settings I configured that only windows from current screen are shown.
I have installed Chrome Dark theme http://kde-look.org/content/show.php/Chrome+Dark+Aurorae?content=160194


Reproducible: Always
Comment 1 Victor Varvaryuk 2013-12-10 07:58:35 UTC
Created attachment 84016 [details]
display configuration

I have two displays, configured as shown in the attached screenshot.
The problem: if I maximize any window an the lowest screen (like skype and thunderbird in this screenshot), It is shown in both both screens.
I've found an workaround for this -- made some space between the screens.
Looks like in maximized state window has one pixel on the other screen.
Comment 2 Thomas Lübking 2013-12-10 09:47:46 UTC
please post the output of "xrandr -q"
Comment 3 Victor Varvaryuk 2013-12-10 10:26:07 UTC
$ xrandr -q
Screen 0: minimum 320 x 200, current 2560 x 2340, maximum 32767 x 32767
eDP1 connected 1440x900+0+1440 (normal left inverted right x axis y axis) 286mm x 179mm
   2560x1600      60.0 +
   2048x1536      60.0  
   1920x1440      60.0  
   1856x1392      60.0  
   1792x1344      60.0  
   1920x1200      60.0  
   1920x1080      59.9  
   1600x1200      60.0  
   1680x1050      60.0     59.9  
   1600x1024      60.2  
   1400x1050      60.0  
   1280x1024      60.0  
   1440x900       59.9* 
   1280x960       60.0  
   1360x768       59.8     60.0  
   1152x864       60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
DP1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440      60.0*+
   1280x720       59.9  
HDMI1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Comment 4 Thomas Lübking 2013-12-10 12:51:01 UTC
Thanks, but that doesn't explain it.
Is the issue limited to few applications (those with FDO style systray icons?!) or does it also apply to eg. kwrite?

If it's not limited to specific applications, please post the output of "xwininfo" on the maximized window.
Comment 5 Victor Varvaryuk 2013-12-10 12:59:44 UTC
This happens to any application - i've just tested this with Dolphin.
Maybe I wasn't clear. I have two panels on two different screens. Each panel has a taskbar showing only application from current screen. According to the attached screenshot if i maximize an application from second screen, it now appears not only in the taskbar of the second screen, it is also shown in the taskbar of the first screen.
Comment 6 Thomas Lübking 2013-12-10 14:05:35 UTC
I understood what you meant.

The issue is rather weird - it depends on the decoration size.

For a border width > 5px (in the resp. direction), the window appears in both taskbars (for plastik this applies for >= large; normal and tiny are not affected) - but neither the client nor the parenting KWin decoration window exceed actual screen bounds (you can check that with "xwininfo -root -tree"), so the window is *not* on the other screen.

Even more funny:
the same holds for composited Oxygen which however has a HUUUUGE decoration keeping the shadow which *is* (input shaped) on the other screen, yet has no impact on this condition.
Comment 7 Eike Hein 2016-06-16 23:39:33 UTC
Plasma 5.7 ships a fully-rewritten Task Manager backend which should resolve these issues. Please re-test with the Plasma 5.7 final release and feel free to reopen if problems do persist after all.