On 09 Nov 2005 12:44:15 +0200, Andrei Popov wrote:
> 
> I've recently installed OpenOffice.org 2 and encountered the following
> problem: The new context-sensitive floating toolbars that appear when
> needed all have the "Title" and "Sticky" attributes. E.g. the Numbered
> List ToolBar that shows only when you're making a list is shown that
> way.
> 
> To cure this, I tried (clumsily) writing a function that is triggered
> whenever a new window is created:
> 
> AddToFunc NewWindowFunc #triggered by FvwmEvent later
> + I ThisWindow (Sticky, Soffice.bin) MakeOOoBehaveRightFunc
> 
> AddToFunc MakeOOoBehaveRightFunc
> + I ThisWindow Style NoTitle, Slippery

This last line makes little sense, you change the style of windows named
"NoTitle," literally. Did you mean WindowStyle here?

> ...This did make the titlebars go away, but the floating toolbars are
> still sticky across pages and desks, no matter what. I tried opening
> FvwmConsole and issuing "Style * Slippery" (which indeed made my
> taskbars and app launchers slippery), but it did NOT help.
> 
> 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.

Regards,
Mikhael.

Reply via email to