Bug 185103 - kwin doesn't automatically move windows when removing a screen
Summary: kwin doesn't automatically move windows when removing a screen
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: xrandr (show other bugs)
Version: 4.7.0
Platform: Unlisted Binaries Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 189277 190297 231519 231821 241754 265989 267339 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-21 10:42 UTC by Andreas Pakulat
Modified: 2011-10-06 07:49 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Pakulat 2009-02-21 10:42:52 UTC
With current trunk kwin doesn't move windows that were on the second of two screen's when that screen is deactivated. Say I have a terminal on screen VGA and everything else on screen DVI. Turning off VGA via xrandr --output VGA --off should move the terminal from that screen to DVI. That doesn't happen.

IIRC this worked fine a week or two ago, so it seem to be a recent regression.

Using XRandR 1.2 here with open source intel driver.
Comment 1 Martin Flöser 2009-04-10 14:39:53 UTC
*** Bug 189277 has been marked as a duplicate of this bug. ***
Comment 2 Martin Flöser 2010-03-21 11:55:53 UTC
*** Bug 231519 has been marked as a duplicate of this bug. ***
Comment 3 Jason 'vanRijn' Kasper 2010-03-22 20:18:40 UTC
*** Bug 231821 has been marked as a duplicate of this bug. ***
Comment 4 Martin Flöser 2010-04-01 12:21:20 UTC
*** Bug 190297 has been marked as a duplicate of this bug. ***
Comment 5 Martin Flöser 2010-06-14 19:23:26 UTC
*** Bug 241754 has been marked as a duplicate of this bug. ***
Comment 6 Alex Fiestas 2010-06-14 19:30:55 UTC
What is actually happening is that when a screen is removed, some geometry got lost, for example, if you have:

HDMI: 1680x1050 + LVDS: 1280x800 your geometry is something like:
TOTAL: 2960x1050

If a window is in, for example x=2000 when a screen is removed the point 2000 no longer exists, and the window is leaved nowhere.
Comment 7 Marcel Dischinger 2010-06-15 16:20:50 UTC
I also observe the following behavior after removing a screen (however only sometimes): Newly started apps (e.g., Thunderbird or Firefox) are not displayed on the current (the only) screen, but are placed outside of the current screen - possible on the removed screen (the app window is also sized to fit on the old screen).
I have to use the task bar and "move" the window onto the actual desktop area.
Comment 8 Martin Flöser 2010-06-15 17:54:27 UTC
> I also observe the following behavior after removing a screen (however
> only sometimes): Newly started apps (e.g., Thunderbird or Firefox) 
Mentioning Firefox and Thunderbird and not mentioning other apps, rings all 
alarm bells here. Can you confirm that this also happens for KDE apps (e.g. 
Dolphin) or other GTK apps (e.g. GIMP) or better said with any application 
that is not from Mozilla?
Comment 9 Witold Sowa 2010-06-15 18:08:41 UTC
I dind't experience the problem described by Marcel in Comment #7, but the issue described in bug report concerns all windows including KDE apps.
Comment 10 Jason 'vanRijn' Kasper 2010-06-15 18:36:48 UTC
Yes, per my bug #231821, this affects KDE apps such as KCalc too.
Comment 11 Marcel Dischinger 2010-06-16 13:57:02 UTC
When I wrote my post I actually was not sure whether it just affected Mozilla or GTK apps. But I can now confirm that KDE apps are affected as well (in my case korganizer).
Comment 12 Witold Sowa 2010-09-25 11:01:46 UTC
I've just installed KDE 4.5.1 and its support for dual head is even worse. Actually it makes KDE unusable for me so i'm downgrading to 4.4. My configuration is:
VGA (external): 2048x1152 with left top corner coordinates (0,0)
LVDS (laptop internal): 1440x900 with left top corner coordinates (2048,0)
So this mean that external screens is on the left of the laptop.

I have different wallpapers and different plasma widgets on each screen. When I disconnect the external screen and turn it off with xrandr, the wallpaper and widgets from external screen goes to the laptop screen. Since the screens resolution of external screen was much higher the widgets doesn't fit the laptop screen and it looks a bit messy.
In KDE 4.3 it works better: after disconnection external screen, the laptop screen content is not changed.

The only workaround i can imagine is to put the external screen on the right side of the laptop, but it's not possible in my case.
Comment 13 Thomas Lübking 2010-09-25 14:26:27 UTC
this is likely not directly related but defers from the attempt to resettle kephal to QDesktopWidget.

To prevent any actiona and maybe get back the 4.3 behaviour, try to disable the "Display manager change monitor" daemon in "kcmshell4 kded"
Comment 14 Martin Flöser 2011-02-28 21:54:47 UTC
*** Bug 267339 has been marked as a duplicate of this bug. ***
Comment 15 Thomas Lübking 2011-02-28 21:56:59 UTC
*** Bug 265989 has been marked as a duplicate of this bug. ***
Comment 16 Matthias Gies 2011-09-07 22:10:23 UTC
still having this behaviour in kde4.6.2 on kubuntu 11.04
Comment 17 Alex Fiestas 2011-10-06 07:49:32 UTC
this bug should be fixed.now, maybe not in the most beatiful way but it is fixed