Bug 155160 - In xinerama mode, kwin doesn't respect the panel (and maximizes windows so that they overlay the panel)
Summary: In xinerama mode, kwin doesn't respect the panel (and maximizes windows so th...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: xinerama (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-05 22:47 UTC by Bernd Steinhauser
Modified: 2008-03-20 21:36 UTC (History)
0 users

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 Bernd Steinhauser 2008-01-05 22:47:26 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Just like in bug 94470 it doesn't respect the panel in xinerama mode. This does work in single head mode.
This is true for both panels, the one on the primary screen and the one on the secondary screen.

I did file a new bug, because although it is the same issue, the complete desktop setup has changed since then (plasma, widgets etc.).

Didn't find a similar bug for kde4, though.
Comment 1 Bernd Steinhauser 2008-01-05 22:50:46 UTC
Forgot to add:
The panel on the second screen doesn't work for "smart moving or resizing".
(It won't snap to the panel, so resizing is completely manual work.)

But maybe that is more related to the other bug I reported, see bug 155159.
Comment 2 Bernd Steinhauser 2008-01-07 15:57:21 UTC
bug 155159 has been resolved, but this issue remains (the second taskbar was just a fake bar, that shouldn't have been there at all).
Comment 3 Bernd Steinhauser 2008-01-13 06:17:21 UTC
One note, that might be helpful.
I can drag items (windows, applets) through the taskbar.
On a non-xinerama screen they get dropped.
(Meaning, that when on a non-xinerama computer I drag sth. below the taskbar, the cursor will release it and it stays there, when I do that on a xinerama setup it doesn't get released and I can drag it through the bar, or back etc.)

While this is a wanted behaviour (if you have got a panel between screens, which wasn't really possible with KDE3) it might or might not be related to this behaviour.
Comment 4 Lubos Lunak 2008-01-14 17:07:53 UTC
What are the steps to reproduce the problem?
Comment 5 Bernd Steinhauser 2008-01-14 18:01:56 UTC
I don't exactly know if there are steps to reproduce this problem.

First, I have got a rather unusual xinerama setup, it basically looks like this 
http://www.bernd-steinhauser.de/xinerama-kde4-panel.png
Ignore the wrong panel in the upper screen, that has been fixed and is gone.
The panel in the lower screen is of course still there and behaves the same.
I did now place a real panel in the upper screen, this panel behaves just like the first panel and didn't affect the behaviour in this bug, but it showed me, that I can do the things I described in comment 3, which (and I tested this) is not possible to do when I am in non-xinerama mode (tested on the same computer and on another one).

The xinerama is setup with ATI's Bigdesktop, the important part in xorg.conf looks like this:
        Option      "DesktopSetup" "vertical,reverse"
        Option      "EnableMonitor" "lvds,crt1"
        Option      "Mode2" "1600x1200"

This will make xrandr --verbose spit things out like:
Screen 0: minimum 320 x 200, current 1600 x 2400, maximum 1600 x 2400
default connected 1600x2400+0+0 (0x8f) normal (normal) 0mm x 0mm
	Identifier: 0x8e
	Timestamp:  87130477
	Subpixel:   no subpixels
	Clones:    
	CRTC:       0
	CRTCs:      0
  1600x2400 (0x8f)  230.4MHz
        h: width  1600 start    0 end    0 total 1600 skew    0 clock  144.0KHz
        v: height 2400 start    0 end    0 total 2400           clock   60.0Hz


I already compared the kwin output with the one of my other computer and it doesn't show anything unusual, as far as I can tell, but I'll attach one, if needed.
I don't really know what actually could trigger this, obviously you need a multimonitor setup. But normally the two things, that are "unusual" in my setup are the different sizes of the two screens (1600x1200+1280x800) and the vertical setup.

BTW, in KDE3 the setup works perfectly and kicker (or any external taskbar) gets respected during maximizing, so it is definitely a KDE4 problem. ;-)
Comment 6 Bernd Steinhauser 2008-01-15 01:07:02 UTC
I made two more screenshots to show the actual problem:
The first screen shows, that new windows sometimes spawn (partially) behind the panel.
http://www.bernd-steinhauser.de/xinerama1.png

The second screen shows what happens if I maximize a window.
http://www.bernd-steinhauser.de/xinerama2.png
You can see, that the window really is maximized, by the maximizing button in the corner. If I resize it, so it matches the free screen area it shows, that it is not maximized.

I took the upper screen, but it is true for both screens, with and without the panel in the upper screen (I added that manually).
Comment 7 Bernd Steinhauser 2008-01-24 12:50:57 UTC
Ok, I did a little bit more testing and I found out what the reason for this is.

I changed:
- Option      "DesktopSetup" "vertical,reverse"
+ Option      "DesktopSetup" "horizontal,reverse"

Now maximizing works. The problem seems to be, that I use a vertical screen setup and not, like most people do, a horizontal setup.

I hope, that is useful information. ;)
Comment 8 Bernd Steinhauser 2008-01-31 11:29:37 UTC
Ok, I installed the open source driver and using xrandr 1.2 I can change the layout using --above and --left-of and it happens there, too, so this is definitely not a driver bug.

The funny thing is, if I change from --left-of with a (correctly) maximized window opened to --above it will "remaximize" the window to the whole screen.
Comment 9 Bernd Steinhauser 2008-02-15 20:24:49 UTC
With a quite recent revision (775056) it is better, the maximizing on the first screen works without problems. Only on the second screen there are still problems.
Comment 10 Bernd Steinhauser 2008-03-20 17:58:18 UTC
Checked latest svn and this problem seems to be fixed, most likely by this revision:
http://websvn.kde.org/?view=rev&revision=786175

So this bug report might be marked as being fixed.

On fortunately there have been other bugs introduced, for example moving windows through the panel is only working in one direction.
(Or actually window placement on the first screen is completely broken.)
Comment 11 Lubos Lunak 2008-03-20 21:36:16 UTC
Fixed in Plasma. Please create new reports for new issues.