Re: [Sawfish] Window dimensions are off by 226x238 when set via Window Rules

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


On Tue, 3 Jul 2012 20:59:49 +0200, "Robert 'Bobby' Zenz" wrote:
> After not knowing what else to do, I ended up with this...well, hack:
> 
> diff tmp/sawfish/sawfish-1.9.0/lisp/sawfish/wm/windows.jl /usr/local/share/sawfish/lisp/sawfish/wm/windows.jl
> 382,384c382,386
> <       (resize-window-to
> <        w (constrain-dimension-to-hints (+ x-base (* x-inc cols)) 'x hints)
> <        (constrain-dimension-to-hints (+ y-base (* y-inc rows)) 'y hints))))
> ---
>>       (resize-window-to w cols rows hints)
>>       ;;;(resize-window-to
>>       ;;; w (constrain-dimension-to-hints (+ x-base (* x-inc cols)) 'x hints)
>>       ;;; (constrain-dimension-to-hints (+ y-base (* y-inc rows)) 'y hints))
>>   ))
> 
> That fixes the problem completely...

Hi. Glad to know your problem is gone, but this is not a bug of
Sawfish. Maybe due to rare race conditions? (IIRC there were trouble
reports only for nVidia drivers a couple of years ago.)

But if the same issue is frequent, it may be better to provide a
workaround option.

The involved function is resize-window-with-hints, which is only used
from match-window.jl. All other functions use resize-window-with-hints*.
(Notice the last asterisk.) I don't know what's the difference.
Could anyone help?

Teika (Teika kazura)


-- 
Sawfish ML


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/