Hi Dana,
I'm using Slackware64 14.1 with Openbox 3.5.2 with tint2svn and I'm having a problem with tint2 panel position appearing in the center of the screen.
So I tried 3.5.0 and the panel position works correct, so I'm not sure what's going on between Openbox 3.5.2 and tint2svn, so for now I'm using 3.5.0 since they both work correctly together.
Please let me know if you need any information to help assist in this bug report Dana, thank you...
Please see the attached screen shot of Openbox 3.5.2 with tint2svn, for this issue...
Someone mentioned this to me;
---------------------------------------
Anyway here a hint, what and where you must look: in the file tint2/src/panel.c look for the function init_panel_size_and_position
Especially in line 305 there is a commented printf line which prints the geometry that tint2 calculates. Please confirm that the dimensions are the same in openbox 3.5.2 and openbox 3.5.0. If they are the same, then it is a bug of openbox, and you should report it there...
---------------------------------------
So at line 305 in panel.c I uncommented it in tint2;
printf("panel : posx %d, posy %d, width %d, height %d\n", panel->posx, panel->posy, panel->area.width, panel->area.height);
I ran tint2 in 3.5.0 & 3.5.2 and the dimensions all showed the same, except right when I started tint2 there would be numbers, so not sure if this has any meaning or not.
Ok here's what's odd, I had 3.5.0 installed, then I logged out of X back into the console, installed Openbox, then ran startx and the first time tint2 works ok. Then I log back out of Openbox again and run startx, then the second time I do this, NOW tint2 appears in the center of the screen. So it will always appear ok for the first time, but as soon as I log out and back in and it restarts, it gets messed up.
Please take a look at the screen shots and tell me what you think? Also notice the numbers that appear right below tint2& in the screen shots all starting as [1]; --- [1] 3540, [1] 9057, [1] 2177
tint2_3.5.0.png is the dimensions showing in 3.5.0.
tint2_3.5.2.png is the dimensions showing in 3.5.2.
tint2_off.png is when I log out and back in and it goes off.
THANKS
I finally figured out what's causing this, since Windows aren't centered in 3.5.2 I placed this at the bottom of the rc.xml;
# end of the example
-->
<application class="*">
<position force="no">
<x>center</x>
<y>center</y>
</position>
</application>
</applications>
</openbox_config>
But doing this, now in Slackware 14.1 tint2 is getting messed up and ending up in the center of the screen.
Odd I didn't have this behaviour in Slackware 14.0, seems like with all the latest changes X, libs, etc., Openbox is now acting strange in the latest version of Slackware.
So what is the best way to get windows to center in 3.5.2?
THANKS
Created attachment 3406 [details] Tint2svn Panel Position
Created attachment 3411 [details] tint2_3.5.0.png
Created attachment 3412 [details] tint2_3.5.2.png
Created attachment 3413 [details] tint2_off.png