Some options set via .sawfishrc/sawfish-client won't work

View: New views
7 Messages — Rating Filter:   Alert me  

Some options set via .sawfishrc/sawfish-client won't work

by Flashrider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi all,

I've just noticed, that some of the options only work, when set via
SawfishConfig, but not when set via SawfishRC/SawfishClient ...

here are the two I found out to behave like that:

edge-flip-enabled
display-ws-name-on-switch

the following one wasn't tested by me, but logically it must also fail:

raise-tabs-on-hover

... Well the thing I don't understand atm is: why are they only working
in SawfishConfig, but not elsewhere? Anyone?

Chris


signature.asc (205 bytes) Download Attachment

Re: Some options set via .sawfishrc/sawfish-client won't work

by Timo Korvola-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 11 October 2009 12:21:52 Christopher Roy Bratusek wrote:
> ... Well the thing I don't understand atm is: why are they only
>  working in SawfishConfig, but not elsewhere? Anyone?

Their defcustoms have after-set hooks.

--
        Timo Korvola <URL:http://www.iki.fi/tkorvola>

Re: Some options set via .sawfishrc/sawfish-client won't work

by Flashrider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Sonntag, den 11.10.2009, 12:38 +0300 schrieb Timo Korvola:
> On Sunday 11 October 2009 12:21:52 Christopher Roy Bratusek wrote:
> > ... Well the thing I don't understand atm is: why are they only
> >  working in SawfishConfig, but not elsewhere? Anyone?
>
> Their defcustoms have after-set hooks.
>

And after-set is not evaluated in SawfishRC/SawfishClient? ... we need
to change that.

Chris


signature.asc (205 bytes) Download Attachment

Re: Some options set via .sawfishrc/sawfish-client won't work

by Jeremy Hankins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christopher Roy Bratusek <zanghar@...> writes:

> Am Sonntag, den 11.10.2009, 12:38 +0300 schrieb Timo Korvola:
>> On Sunday 11 October 2009 12:21:52 Christopher Roy Bratusek wrote:
>> > ... Well the thing I don't understand atm is: why are they only
>> >  working in SawfishConfig, but not elsewhere? Anyone?
>>
>> Their defcustoms have after-set hooks.
>>
>
> And after-set is not evaluated in SawfishRC/SawfishClient? ... we need
> to change that.

Why?  Hmm, I was going to say that there's usually a setter function,
like set-number-of-viewports in viewport.  But apparently not, at least
in the case of edge-flip.  But I think that having a setter function is
better than having sawfishrc honor after-set...

--
Jeremy Hankins <nowan@...>

Re: Some options set via .sawfishrc/sawfish-client won't work

by Flashrider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Sonntag, den 11.10.2009, 10:27 -0500 schrieb Jeremy Hankins:

> Christopher Roy Bratusek <zanghar@...> writes:
> > Am Sonntag, den 11.10.2009, 12:38 +0300 schrieb Timo Korvola:
> >> On Sunday 11 October 2009 12:21:52 Christopher Roy Bratusek wrote:
> >> > ... Well the thing I don't understand atm is: why are they only
> >> >  working in SawfishConfig, but not elsewhere? Anyone?
> >>
> >> Their defcustoms have after-set hooks.
> >>
> >
> > And after-set is not evaluated in SawfishRC/SawfishClient? ... we need
> > to change that.
>
> Why?  Hmm, I was going to say that there's usually a setter function,
> like set-number-of-viewports in viewport.  But apparently not, at least
> in the case of edge-flip.  But I think that having a setter function is
> better than having sawfishrc honor after-set...
>
edge-flip has a setter function: edge-flip-enable, but actually it does
not disable edgeflip, if niled and it's not exported, so atm can't be
accessed via sawfishrc, moreover the setters for raise-tabs-on-hover and
display-workspace-name also aren't exported, well I'll do the necessary
changes tommorow.

Chris


signature.asc (205 bytes) Download Attachment

Re: Some options set via .sawfishrc/sawfish-client won't work

by Timo Korvola-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 11 October 2009 12:40:16 Christopher Roy Bratusek wrote:
> Am Sonntag, den 11.10.2009, 12:38 +0300 schrieb Timo Korvola:
> > Their defcustoms have after-set hooks.
>
> And after-set is not evaluated in SawfishRC/SawfishClient?

No, unless you use custom-set-variable.

--
        Timo Korvola <URL:http://www.iki.fi/tkorvola>

Re: Some options set via .sawfishrc/sawfish-client won't work

by Flashrider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Dienstag, den 13.10.2009, 21:15 +0300 schrieb Timo Korvola:
> On Sunday 11 October 2009 12:40:16 Christopher Roy Bratusek wrote:
> > Am Sonntag, den 11.10.2009, 12:38 +0300 schrieb Timo Korvola:
> > > Their defcustoms have after-set hooks.
> >
> > And after-set is not evaluated in SawfishRC/SawfishClient?
>
> No, unless you use custom-set-variable.
>

Well check out the current git, the following three setters are now
exported:

raise-tabs-on-hover-setter
edge-flip-enable
display-ws-name-setter

tell me, if you find more functions like that (not all :after-set are
affected (eg.: the frame-font-color-changers aren't))

Chris


signature.asc (205 bytes) Download Attachment