Re: [merge request] add-window-matcher, bugfix, doc.
- From: Christopher Roy Bratusek <zanghar freenet de>
- To: sawfish-list gnome org
- Subject: Re: [merge request] add-window-matcher, bugfix, doc.
- Date: Sun, 6 Dec 2009 18:09:57 +0100
Am Sat, 05 Dec 2009 17:22:19 +0900 (JST)
schrieb Teika Kazura <teika lavabit com>:
> Hi. Please merge my branch. It includes:
> * Minor bug fix in move-resize.jl
> * Doc, including news.
> * add/remove-window-matcher improvements.
>
> An example of the new grammar for add-window-matcher is:
> (add-window-matcher '((WM_NAME . "^root$")
> (WM_CLASS . "^XTerm/xterm$"))
> '((ignore-program-position . t)
> (maximize . vertical)))
One thing, I would like to have is to do the following:
(add-window-matcher '((WM_NAME "foo")
(WM_NAME "bar"))
'((fixed-position . nil )
(window-history . t )))
Or in other words to use the same matcher directly for different
windows. That's currently not possible.
Chris
> Following Timo's suggestion, the actions are passed as an alist.
> (Thanks!)
>
> The old usage is still possible, but it is deprecated.
> In fact, it was not only powerless, but buggy. Suppose you've got
> rules for '((WM_NAME "foo") (WM_CLASS "class")) and '((WM_NAME "bar")
> (WM_CLASS "class")), i.e. the class is common. Now if you do
> (add-window-matcher 'WM_CLASS "class" actions...), then it will be
> added to *one of* the above two, and it's unpredictable which will be!
>
> Regardless of which syntax is used, the old buggy match is avoided.
>
> viewport-offset-pixel is planned to be renamed to
> viewport-offset-coord, but not yet done in this .
>
> Regards,
> Teika (Teika kazura)
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]