On Wed, 9 Nov 2005, Mikhael Goikhman wrote:
I tried xprop on the pesky toolbars, it showed an interesting hint,
smth like _WM_WINDOW_TYPE TOOLBAR, if I recall correctly. FvwmIdentify
shows it like "Ewmh Window Type: ToolBar"
So there are two questions:
1. can I somehow make the floating toolbars slippery in OOo2?
2. (loosely related) can I apply a style to a window on condition
that the output of xprop on the window equals something I define?
What I want is smth like: IF `xprop | grep
window_type | cut ...` equals TOOLBAR, THEN Style whatever...
If anyone came with a FVWM function example, that would be great.
The IF function you want is easy to write using PipeRead, supposing the
windows you speak about are managed by fvwm.
I have no OpenOffice.org 2 to see what happens exactly, but I have
abiword, with dragged off toolbars having EWMH Window Type "ToolBar".
I may manage such windows using something like:
WindowStyle NoDecorHint, Title, Borders
Stick off
Also, any WindowStyle command on such window restores its stickyness. I
can't say yet whether there is a bug somewhere regarding such behaviour.
I'm not sure if it can classify as a bug. The fact is that each time fvwm
looks up the style for a window it ends by checking the ewmh window type
and applying stle changes to such windows. That mean it's impossible to
use a style command to override any of the styles set by default for a
window using the ewmh window type property. Also such toolbars are made
sticky, with a refrence to that it works with KDE. Using the Stick command
will work, but as you say any subsequent style command affecting that
window will sitck it again. One way to fix the bug would be to add a
EWMHIgnoreWindowType style to FVWM, but that is just a way to cure the
symptom.
/Viktor