Bug 346569 - Maximized windows go under panel at top of screen
Summary: Maximized windows go under panel at top of screen
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 4.11.14
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-24 13:34 UTC by Sheldon
Modified: 2015-04-24 15:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Chrome under Panel (188.72 KB, image/jpeg)
2015-04-24 13:34 UTC, Sheldon
Details
Output of qdbus org.kde.KWin /KWin supportInformation (4.94 KB, text/plain)
2015-04-24 13:52 UTC, Sheldon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sheldon 2015-04-24 13:34:37 UTC
Created attachment 92201 [details]
Chrome under Panel

When the Panel is located at the top of the screen, maximized windows end up larger than the screen space (minus the panel) that should be available to them and end up under the Panel. The maximized windows do not fill the full screen in vertical size, but about 50% of the width of the Panel.

Look at the attachment and you can see that the maximized Chrome window goes under the Panel but doesn't go all the way to the top of the screen. I've drawn a red line at the top of the window.
Comment 1 Sheldon 2015-04-24 13:35:32 UTC
No matter what size I make the Panel, maximized windows always seem to underlap it by 50% of the height of the Panel.
Comment 2 Martin Flöser 2015-04-24 13:37:58 UTC
please provide output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 3 Sheldon 2015-04-24 13:52:41 UTC
Created attachment 92202 [details]
Output of qdbus org.kde.KWin /KWin supportInformation
Comment 4 Martin Flöser 2015-04-24 13:55:43 UTC
it's a shot in the blue, but
> Screen 0 Geometry: 22,16,2560x1080

is weird for a single screen system. Can you try placing the screen to 0/0?
Comment 5 Sheldon 2015-04-24 13:56:26 UTC
(In reply to Martin Gräßlin from comment #4)
> it's a shot in the blue, but
> > Screen 0 Geometry: 22,16,2560x1080
> 
> is weird for a single screen system. Can you try placing the screen to 0/0?

I'm not sure how I do that.
Comment 6 Thomas Lübking 2015-04-24 14:08:54 UTC
First of all, please record the output of
   xprop -root _NET_WORKAREA
and
   xrandr -q

To adjust the screen geometry, please check the output of
   xrandr -q

Then, *assuming* the connected device *would* be called "DVI-I-1" simply run

   xrandr --output DVI-I-1 --auto

check "xrandr -q" again to ensure the screen is in proper position, IF NOT, run
   xrandr --output DVI-I-1 --pos 0x0
Comment 7 Sheldon 2015-04-24 14:14:57 UTC
(In reply to Thomas Lübking from comment #6)
> First of all, please record the output of
>    xprop -root _NET_WORKAREA
> and
>    xrandr -q
> 
> To adjust the screen geometry, please check the output of
>    xrandr -q
> 
> Then, *assuming* the connected device *would* be called "DVI-I-1" simply run
> 
>    xrandr --output DVI-I-1 --auto
> 
> check "xrandr -q" again to ensure the screen is in proper position, IF NOT,
> run
>    xrandr --output DVI-I-1 --pos 0x0

sheldon:~$ xprop -root _NET_WORKAREA 
_NET_WORKAREA(CARDINAL) = 22, 16, 2560, 1080, 22, 16, 2560, 1080, 22, 16, 2560, 1080, 22, 16, 2560, 1080, 22, 16, 2560, 1080, 22, 16, 2560, 1080
sheldon:~$ xrandr -q
Screen 0: minimum 8 x 8, current 2582 x 1096, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DVI-I-2 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-I-3 connected primary 2560x1080+22+16 (normal left inverted right x axis y axis) 673mm x 284mm
   2560x1080      60.0*+
   1920x1080      60.0  
   1680x1050      60.0  
   1280x1024      75.0     60.0  
   1280x800       59.8  
   1152x864       75.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  

sheldon:~$ xrandr --output DVI-I-3 --auto
sheldon:~$ xrandr -q
Screen 0: minimum 8 x 8, current 2560 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DVI-I-2 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-I-3 connected primary 2560x1080+0+0 (normal left inverted right x axis y axis) 673mm x 284mm
   2560x1080      60.0*+
   1920x1080      60.0  
   1680x1050      60.0  
   1280x1024      75.0     60.0  
   1280x800       59.8  
   1152x864       75.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  

This seems to have fixed it from initial tests. How do I make this permanent?
Comment 8 Sheldon 2015-04-24 14:21:44 UTC
xrandr --output DVI-I-3 --auto

Seems to have done the trick. I rebooted and it all is working properly. Thanks!

This is quite strange though. Just as an FYI, it was working fine until Wed when I updated some packages and it started this behaviour. I haven't touched any settings, I don't have an xorg.conf or anything specific in any config file that would specify some sort of offset. Don't know how this happened. Any thoughts?
Comment 9 Sheldon 2015-04-24 14:22:19 UTC
(In reply to Sheldon from comment #8)
> xrandr --output DVI-I-3 --auto
> 
> Seems to have done the trick. I rebooted and it all is working properly.
> Thanks!
> 
> This is quite strange though. Just as an FYI, it was working fine until Wed
> when I updated some packages and it started this behaviour. I haven't
> touched any settings, I don't have an xorg.conf or anything specific in any
> config file that would specify some sort of offset. Don't know how this
> happened. Any thoughts?

FYI .... it fixed it across reboots so it seems to be permanent.
Comment 10 Thomas Lübking 2015-04-24 14:59:01 UTC
Did you recently have more than one screen attached?
Comment 11 Sheldon 2015-04-24 15:44:17 UTC
(In reply to Thomas Lübking from comment #10)
> Did you recently have more than one screen attached?

No, never.