Bug 4640 - windows do not get correctly resized with xrandr
Status: RESOLVED FIXED
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.4.11.1
Hardware: PC Linux
: P2 normal
Assignee: Dana Jansens
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2010-05-15 19:33 EDT by eusou15
Modified: 2011-10-15 23:12:09 EDT
0 users

See Also:



Description eusou15 2010-05-15 19:33:50 EDT
Hi,

I've hit a bug with openbox and xrandr.

I have an internal LCD monitor on my laptop and a large external monitor. For the purposes of this bug report and xrandr, lets call the first LVDS1 and the second VGA1.

So when I do
xrandr --output LVDS1 --off --output VGA1 --auto

my LVDS1 goes off, and openbox works correctly on the external monitor, with windows maximizing to the full extent.

So now lets assume that I got back to using my LVDS1 and VGA1 is off.

If I do
xrandr --output LVDS1 --auto --output VGA1 --auto

both screens go into mirror mode, although VGA1 has a much higher resolution of 1920x1080. This makes maximizing windows only occupy 1280x800 of it. I guess this is expected since they are in mirror mode.

However, if after the command above I do
xrandr --output LVDS1 --off --output VGA1 --auto

maximized windows still cover only 1280x800 of the big external screen VGA1 although the internal LVDS1 is disabled. Strangely, left clicking on the window title bar and dragging it causes the window to expand to the whole monitor!

Restarting or reconfiguring openbox seems to solve the problem.

I am using openbox 3.4.11.1 in Debian testing amd64.

Please let me know if you need any more information or help.

Regards,
Pedro
Comment 1 Dana Jansens 2011-10-15 17:44:09 EDT
These look the same.  I have a laptop to try these things with now, yay.

*** This bug has been marked as a duplicate of bug 4802 ***
Comment 2 Dana Jansens 2011-10-15 20:14:36 EDT
nvm these are different things.
Comment 3 Dana Jansens 2011-10-15 23:12:09 EDT
This should be resolved now. Relevant commit:

http://git.openbox.org/?p=dana/openbox.git;a=commit;h=ea382ba7476144de0d67861dd97a241d01002c06