Re: Strange initial geometry hints and metacity



On Tue, 2003-04-01 at 19:26, Havoc Pennington wrote:
> On Tue, Apr 01, 2003 at 02:12:54PM +0300, Tommi Komulainen wrote: 
> > Now, the result of the non-zero geometry hints is that it's making
> > metacity handle the geometry rather oddly when it's saving the session. 
> > Namely, the geometry metacity saves is exactly the 'base size' amount
> > smaller than what Galeon is saving in its session files (the dimensions
> > it gets with gtk_window_get_size.)
> 
> Metacity is trying to save the "logical size" of the window. 
> So e.g. if you have an 80x24 terminal, metacity wants to save restore
> 80x24, rather than a pixel measurement. That way if you change your
> font size you don't suddenly get total weirdness. 

Yeah, I'm aware of that, width_inc/height_inc are quite clear, but I'm
not sure I understand how or why the base size is used as it is, or that
why is it non-zero to start with :-/


> > What is happening here?
> 
> Something is going wrong. ;-) 
> 
> Look at METACITY_VERBOSE=1 METACITY_USE_LOGFILE=1 output, there may be
> a hint in there.

Heh, right ;)

Well, that's where I finally figured out the base size in the first
place, the relevant lines are probably as follows.

GEOMETRY: Window 0x1400003 (Untitled) sets min size 375 x 164
WINDOW_OPS: Window 0x1400003 (Untitled) fullscreen = 0 not resizable, maximizable = 1 fullscreenable = 1 min size 375x164 max size 2147483647x2147483647
WINDOW_OPS: Window 0x1400003 (Untitled) decorated = 1 border_only = 0 has_close = 1 has_minimize = 1 has_maximize = 1 has_move = 1 has_shade = 1 skip_taskbar = 0 skip_pager = 0
GEOMETRY: XSizeHints: PMinSize now set (-16777216 x -6974580 -> 375 x 164)
GEOMETRY: XSizeHints: PMaxSize now set (-9475231 x -9343645 -> 2147483647 x 2147483647)
GEOMETRY: XSizeHints: PResizeInc now set (width_inc -9343645 -> 1 height_inc -9343902 -> 1)
GEOMETRY: XSizeHints: PAspect now set (min -9278109/-9277853 -> 1/2147483647 max -9278110/-9278366 -> 2147483647/1)
GEOMETRY: XSizeHints: PBaseSize now set (-9343902 x -9409695 -> 375 x 164)


And like I said, manually setting the base size to zero fixes it, but it
just feels wrong having to do it.


-- 
Tommi Komulainen                                 tommi komulainen iki fi
GPG 1024D/68388EE6    6FD6 DD79 EB38 BF6F 3533  09C0 04A8 9871 6838 8EE6

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]