[openbox] [nikitin at vnukovo.net: Openbox bug]

Ben Jansens ben at orodu.net
Mon Nov 4 16:48:14 EST 2002


On Mon, Nov 04, 2002 at 03:33:36PM -0600, Ava Arachne Jarvis wrote:
> [Ben Jansens - Mon,  4 Nov 2002 03:23:27 PM CST]
> > Is anyone else able to decipher what this guy is having go wrong..?
> > Mozilla is crashing, what?
> > 
> > Ben
> > 
> <snip> 
> > File Window.cc, lines 2034, 2035 (you restore premax window geometry):
> > 
> > blackbox_attrib.premax_w = premax_w;
> > blackbox_attrib.premax_h = premax_h;
> > 
> > After I start Mozilla, it runs with net_wm_state_maximized atoms, and Openbox makes its window
> > maximized. It seems to me, premax_x, premax_y, premax_w and premax_h have zero values in 
> > BlackboxWindow::remaximize method when it's called from a BlackboxWindow constructor -- 
> > so up-clicking "maximize" button can't restore window geometry and Mozilla crashes.
> 
> So far as I can determine, 
> 
>   - Mozilla, when first started, runs with a maximized state.  Possibly 
>     a setting in Mozilla to turn this on...
>   - So, Openbox makes the window maximized.  Well, good, and
>     NETWM-compliant.
>   - But since this window never had any pre-maximized state in Openbox,
>     the pre-maximized ints are set to 0.  
>   - This leads to, when the user attempts to unmaximize Mozilla,
>     Openbox probably resizing the Mozilla window to 0 by 0 pixels, which 
>     Mozilla really really doesn't like, and so Mozilla goes boom.
> 
> > I've made a dirty fix. You'll make something more elegant, though:
> > 
> > blackbox_attrib.premax_w = premax_w ? premax_w : 780;
> > blackbox_attrib.premax_h = premax_h ? premax_h : 580;
> 
> His fix just sets arbitrary starting values for the pre-maximized state
> if a window starts out maximized in Openbox...

Well done! I think you've solved the riddle. Thanks :)

Ben
-- 
I am damn unsatisfied to be killed in this way.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://icculus.org/pipermail/openbox/attachments/20021104/ab429b89/attachment.pgp>


More information about the openbox mailing list