Bug 6085 - Openbox 3.5.2 & Tint2svn Panel Position Not Correct
Status: RESOLVED FIXED
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.5.2
Hardware: PC Linux
: P3 major
Assignee: Dana Jansens
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2014-02-05 17:17 EST by Das
Modified: 2014-10-27 20:55:00 EDT
1 user (show)

See Also:


Attachments
Tint2svn Panel Position (129.78 KB, image/jpeg)
2014-02-05 17:20 EST, Das
tint2_3.5.0.png (783.97 KB, image/png)
2014-03-03 18:46 EST, Das
tint2_3.5.2.png (782.22 KB, image/png)
2014-03-03 19:01 EST, Das
tint2_off.png (772.42 KB, image/png)
2014-03-03 19:02 EST, Das

Description Das 2014-02-05 17:17:03 EST
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...
Comment 1 Das 2014-02-05 17:20:35 EST
Created attachment 3406 [details]
Tint2svn Panel Position
Comment 2 Das 2014-03-03 18:45:21 EST
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
Comment 3 Das 2014-03-03 18:46:34 EST
Created attachment 3411 [details]
tint2_3.5.0.png
Comment 4 Das 2014-03-03 19:01:40 EST
Created attachment 3412 [details]
tint2_3.5.2.png
Comment 5 Das 2014-03-03 19:02:11 EST
Created attachment 3413 [details]
tint2_off.png
Comment 6 Das 2014-03-03 22:14:07 EST
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
Comment 7 Das 2014-03-03 22:50:59 EST
3.5.2 from GIT seems to have fixed this problem....
Comment 8 Mikachu 2014-10-27 20:55:00 EDT
reporter says problem is fixed