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

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


On Mon, 2 Jul 2012 21:06:21 +0200
"Robert 'Bobby' Zenz" <Robert.Zenz@xxxxxxxxxxxxxx> 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...


> Hello.
> 
> After a pretty...well, funny scavenger-hunt (I don't speak much C,
> even less Lisp) through the source I think I can pinpoint the issue:
> 
> In /usr/local/share/sawfish/lisp/sawfish/wm/window.jl, this gets
> called (resize-window-with-hints w cols rows #!optional hints)
> instead of
>     (resize-window-with-hints* w width height #!optional hints)
> 
> I think that is the issue. Though, from there I lost the trail and I'm
> unable to figure out *why* the wrong overload is called...well, if
> that even is an overload and if it even is wrong that this gets
> called, as I said I don't speak Lisp.
> 
> Hope that helps.
> 
> On Wed, 27 Jun 2012 02:19:55 +0200
> fuchur <flohtransporter@xxxxxxxxx> wrote:
> 
> > Hi,
> > 
> > On Wed, 27 Jun 2012 00:18:15 +0200
> > wrote "Robert 'Bobby' Zenz" <Robert.Zenz@xxxxxxxxxxxxxx>:
> > 
> > >Hello everyone again.
> > >
> > >I take that back, it is *not* always off by 226x238, that only is
> > >correct for gconf-editor. xterm when set to 500x500 goes to
> > >3000x1500 or so, and the xfce4 appearance dialog gets resized to
> > >roughly 800x1000. So this depends on the window sawfish is trying
> > >to resize.
> > >
> > >So far I'm still out of ideas.
> > >
> > >Best Regards,
> > >Bobby
> > >
> > 
> > What happens if you move "~/.sawfish" to ~/.sawfish-old" and restart
> > sawfish? If that than work it is something wrong with your customer
> > settings/scrips.
> > 
> 
> 


-- 
Sawfish ML


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