Bug 181441 - Impossible to maximize windows after switching off a second monitor
Summary: Impossible to maximize windows after switching off a second monitor
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-21 00:35 UTC by Lucas Maldague
Modified: 2009-03-22 20:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Maldague 2009-01-21 00:35:54 UTC
Version:            (using Devel)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled sources

When I switch off a second monitor (when I am in a dual-screen configuration), i can't maximize the windows any more. When I do so, the window is only taking 50 % of the screen (the top part). I need to restart KDE to have the normal behavior back.

Note : I always place the second screen right of my main screen. Also, I don't knows why, but xrandr identifies the external monitor as screen "1", and my laptop monitor as screen "2".
Comment 1 Guillaume Pothier 2009-01-21 02:51:33 UTC
Does this occur with trunk? When did you update it? Because there was an important fix for dual-screen setups a few days ago.
Comment 2 Lucas Maldague 2009-01-21 20:17:48 UTC
My current installation comes from openSUSE RPMs. I installed it on January 13th, and my current packages version is 4.1.96-37.1. Hope this can help. I'll thy to install the latest version and see if this bug is still there.
Comment 3 Guillaume Pothier 2009-01-21 20:53:12 UTC
Those fixes were committed on Jan 12th. I think they did not make it into rc1. Please check with rc2 (if it exists) or 4.2 final.
Comment 4 clcevboxvjeo 2009-02-11 19:24:32 UTC
This problem still exists in 4.2.0. I used to have my second monitor set as extended - right of, but now I use clone and it happens too. I disconnect the monitor, then I run "xrandr --output VGA --off" and the windows can't be fully maximized, in my case it is like 60% of height.
Comment 5 clcevboxvjeo 2009-03-05 23:39:58 UTC
This bug still exists in KDE 4.2.1.

I noticed that when I disconnect the monitor first and then run the xrandr... command, the bug appears. But when I run the xrandr... when the monitor is still plugged in, and after then I disconnect the monitor, it seem to work as expected.
Comment 6 Aike J Sommer 2009-03-09 11:16:17 UTC
*** Bug 185471 has been marked as a duplicate of this bug. ***
Comment 7 Aike J Sommer 2009-03-09 11:17:39 UTC
Fixed in trunk. Struts were not updated when the framebuffers size changed, which allowed kwin only a certain area to work with.
Comment 8 Aike J Sommer 2009-03-22 20:34:56 UTC
SVN commit 942883 by asommer:

Backport 937003 and 938069.

- update struts when the framebuffer is resized
- create PanelView instances only when the screen they are for is active
- destroy PanelViews when their screen is deactivated

Use mouse-poll-timer for auto-hide, even if no popup is open. This makes the 
panel stay, if the pointer only leaves for a few ms.
Correctly resize new panels to the screen they are created on.

BUG:181441
BUG:185471
BUG:179131
BUG:178066

 M  +14 -0     desktopcorona.cpp  
 M  +34 -21    panelview.cpp  
 M  +23 -15    plasmaapp.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=942883