[openbox] Openbox and Xrandr - does not detect resolution automatically when maximizing

Dana Jansens dana at orodu.net
Wed May 12 14:48:01 EDT 2010


On 2010-05-12, at 2:11 PM, Pedro Ribeiro wrote:

> Hi all,
> 
> this may or may not be a solvable however I think I've hit a bug using
> openbox and xrandr.
> 
> I have an external monitor connected to my laptop. When I set the
> monitor like this:
> 
> xrandr --output LVDS1 --off --output VGA1 --mode 1920x1080
> 
> everything works correctly.
> 
> However when I do
> 
> xrandr --output LVDS1 --off --output VGA1 --auto
> 
> which sets exactly the same 1920x1080 resolution, openbox does not
> seem to understand the full screen resolution.
> By this I mean that when I maximize a window, it will only cover the
> 1280x800 (which is the size of my laptop monitor) and not the whole
> external screen. If I click and drag on the titlebar, the window then
> grows to 1920x1080, but I have to do this on every window I try to
> maximize.
> Restarting or reconfiguring openbox appears to solve it.


It sounds like a bug but I don't think I really get what is going on clearly.  Let me see if I have this right.

At the start, you have one monitor disabled, and one enabled, set at 1920x1080 with the command:

xrandr --output LVDS1 --off --output VGA1 --mode 1920x1080

Openbox is functioning correctly at this time.  You have maximized windows filling the screen.


Then, you run the command:

xrandr --output LVDS1 --off --output VGA1 --auto

which does not change the screen resolution, but maximized windows are shrunk immediately to 1280x800 (the size of the disabled screen).


Then, reconfiguring Openbox returns the maximized windows to their original size of 1920x1080.


Is this what you are experiencing, or is it slightly different?


And have you compiled Openbox yourself?  What version is it?  Etc..

Dana


More information about the openbox mailing list