Any plans for adding patterns on windows to the Next/Prevwindow

Jesper Louis Andersen jlouis at mongers.org
Mon Dec 22 18:15:19 EST 2003


Do you have any plans regarding adding in a pattern language for
Window selection operations like the one fvwm(2) has? I do not know
if this is the correct solution for your wm, but it might be a 
good solution I think since it is general and allows for much
configuration. Assume that I can write:

NextWindow (!Iconic, !Shaded)

Where the last is a pattern which has to match in order to select the
window in question. It can be implemented by having a function
g_boolean pattern_match(pattern *, window *), returning a boolean
value on if the window matched. The Searches should be easy to build
around this. 

If speed is of concern (it is not, but imagine it is), you could 
construct the pattern as a bit-vector giving you tests for up to
the architectures number of flags in constant time. But I do not
think your wm will use the time here, as it is only triggered on
rare events like a keyboard press triggering a window change routine.


-- 
j. 



More information about the openbox mailing list