You are not logged in.

#1 2014-10-16 01:28:40

eduardojunio
Member
From: World Wide Web
Registered: 2014-09-22
Posts: 20
Website

[SOLVED] Maximize window problem on Openbox

Hello guys, my problem is that the window don't maxime.

Window maximized:
http://img.ctrlv.in/img/14/10/16/543f1e5aa5dc4.png

Now without maximize:
http://img.ctrlv.in/img/14/10/16/543f1ed21c54b.png

Someone can help me? Thank you in advance! big_smile


-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
-- author edit: sorry smile --

Last edited by eduardojunio (2014-10-16 02:38:04)


CODE IS POETRY.

Offline

#2 2014-10-16 01:55:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Maximize window problem on Openbox

It looks like one of two things, either 1) you've set up openbox to reserve dock space on the right, or there is some dock/panel program with a strut-policy set reserving that space.

Have you restarted openbox and seen this more than once?  Are you running any docks or panels?  Do you get the same thing if you (temporarily) rename or remove ~/.config/openbox/rc.xml?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-10-16 02:10:17

eduardojunio
Member
From: World Wide Web
Registered: 2014-09-22
Posts: 20
Website

Re: [SOLVED] Maximize window problem on Openbox

My only dock/panel is tint2, I reboot my PC now, I remove the folder ~/.config/openbox, make a new folder called ~/.config/openbox and paste this: cp -R /etc/xdg/openbox/* ~/.config/openbox, and I ran openbox --reconfigure, and the problem still.


CODE IS POETRY.

Offline

#4 2014-10-16 02:15:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Maximize window problem on Openbox

Hmm, that is odd.  Could you post the output of `xrandr`


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2014-10-16 02:20:39

eduardojunio
Member
From: World Wide Web
Registered: 2014-09-22
Posts: 20
Website

Re: [SOLVED] Maximize window problem on Openbox

The output is:

[archie@pimposo ~]$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00*+
   800x600       60.32    56.25  
   640x480       59.94  
VGA1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768      59.79*+
   1024x768      60.00  
   800x600       60.32  
   640x480       60.00  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
[archie@pimposo ~]$ 

CODE IS POETRY.

Offline

#6 2014-10-16 02:24:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Maximize window problem on Openbox

Aha!  What a dumb luck guess of mine - that's it.

You have two outputs active, and they are overlapping.  So when you maximize a window, openbox sizes it to fit the primary output LVDS1 which is only 1024 pixels wide, but your VGA1 output is wider.  The VGA1 output matches the dimensions of the screenshot you posted.  There *should be* an extra 342 pixels remaining on the side of VGA1.

How are these screens set up?  Are you actively using both?  How do you want them set up?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2014-10-16 02:29:36

eduardojunio
Member
From: World Wide Web
Registered: 2014-09-22
Posts: 20
Website

Re: [SOLVED] Maximize window problem on Openbox

I want to use only the VGA1 with screen 1366x768, I don't know how to disable the LVDS1. sad

Last edited by eduardojunio (2014-10-16 02:30:10)


CODE IS POETRY.

Offline

#8 2014-10-16 02:33:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Maximize window problem on Openbox

How do you *enable it*?

The quick fix would be

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

You can use the other monitor in an extended desktop mode with something like this:

xrandr --output VGA1 --auto --output LVDS1 --auto --right-of VGA1

You could put either of these in your xinitrc if you use xinit/startx to start X.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2014-10-16 02:37:27

eduardojunio
Member
From: World Wide Web
Registered: 2014-09-22
Posts: 20
Website

Re: [SOLVED] Maximize window problem on Openbox

Problem solved!! @Trilby thank you very much! I ran:

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

And now when I maximize a window:
http://img.ctrlv.in/img/14/10/16/543f2ecf97446.png

I put this on the autostart script of Openbox to be permanent! big_smile


CODE IS POETRY.

Offline

Board footer

Powered by FluxBB