Bug 190371 - screen geometry off after enabling and disabling external monitor
Summary: screen geometry off after enabling and disabling external monitor
Status: RESOLVED DUPLICATE of bug 281185
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-22 22:16 UTC by Claus Wilke
Modified: 2011-12-04 11:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing the problem (324.61 KB, image/png)
2009-04-22 22:22 UTC, Claus Wilke
Details
Fix panel resize on screen remove. (646 bytes, patch)
2011-12-04 09:41 UTC, Alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claus Wilke 2009-04-22 22:16:37 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    SuSE RPMs

I have a laptop attached to an external monitor. After first enabling and then disabling the external monitor with xrandr, kwin gets confused about the geometry of my laptop monitor, and thinks the screen is smaller than it is. As a result, maximized windows cover only part of the screen, and extenders in plasma pop up at the wrong location.

This is a regression from KDE 4.2.0. Everything used to work fine until I upgraded.

I will attach a screenshot that shows the problem.
Comment 1 Claus Wilke 2009-04-22 22:22:15 UTC
Created attachment 33009 [details]
Screenshot showing the problem
Comment 2 Alex 2011-12-03 16:09:49 UTC
This bug stil presend in KDE 4.7.2.

But it`s not a KWin bug! This is plasma bug. When we restart plasma - all fullscreen window become normal.
Comment 3 Thomas Lübking 2011-12-03 16:28:53 UTC
it's likely bug #281185 (while it's tagged "fixed" for 4.7.1 - don't know)
please see bug #281185#c3 (comment #3 and following) and check whether this holds for you as well (so the bugs can be united and in doubt "re"opened here)
Comment 4 Alex 2011-12-04 09:37:35 UTC
(In reply to comment #3)
> it's likely bug #281185 (while it's tagged "fixed" for 4.7.1 - don't know)
> please see bug #281185#c3 (comment #3 and following) and check whether this
> holds for you as well (so the bugs can be united and in doubt "re"opened here)

Thanks for a reply.

I carefully examined the specified bug ( #281185 ). My system still affected.

But i found reason of problem. When screen removed from plasma, panel struts was not updated.

Affected all kde version exept (may be) 4.8

See my patch.

P.S. sorry for my bad english.
Comment 5 Alex 2011-12-04 09:41:23 UTC
Created attachment 66360 [details]
Fix panel resize on screen remove.

Plasma: On screen remove we must update Struts for all remain panels.
Comment 6 Thomas Lübking 2011-12-04 11:07:09 UTC
Thanks a lot for the patch.
I'll tag this a dupe, so the bug is now dealt at bug #281185

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