Re: FVWM: FVWM2: Test if windows has title bar
Thomas Adam <[email protected]>
| Newsgroups | gmane.comp.window-managers.fvwm |
|---|---|
| Message-ID | <20200813184952.drmiu7uhqn2pmnnz@debian> |
On Thu, Aug 13, 2020 at 08:41:10PM +0200, Carsten Kunze wrote: > Hello, > > how is it possible to test if a window has a title bar (i.e. an equivalent to the test if a windows has resize handles with "ThisWindow (HasHandles)")? No. But I'm reminded of this: https://xteddy.org/fvwm/patches.html#toc2 In lieu of that, you could write a function which used State to track this if you know whether a window is going to have a title or not, as in: Style foo, State 0 Style somethingElse, !State 0 DestroyFunc Foo AddToFunc Foo + I ThisWindow (State 0) DoSomethingForTitleOnWindow + I TestRc (NoMatch) DoSomethingForNoTitleOnWindow -- Thomas