On 02/23/00, Tim Phipps said:
>Danny Dulai wrote:
>
>> >On Mon, Nov 08, 1999 at 01:51:24PM +0100, dominik.vogt_at_fvwm.org wrote:
>
>> >> AddToFunc showhidebuttons
>> >> + "I" next (FvwmButtons) move 0p +765p
>> >> + "I" current (FvwmButtons) move +0 -0
>
>> I use SloppyFocus for everything. I added the Style FvwmButtons MouseFocus
>> line, and my functions works properly if i move from my fvwmbuttont to
>> another window, but if i just move to the root window, the fvwmbuttons
>> doesnt hide. the focus is lost, but for some reason, the move (to move it
>> off the stree) is not being called. any ideas?
>
>You probably have a "Style FvwmButtons CirculateSkip" in your fvwm2rc
>whihc is causing the "Next (FvwmButtons)" to not do anything. Try this:
>
>AddToFunc showhidebuttons
>+ "I" next (FvwmButtons CirculateHit) move 0p +765p
>+ "I" current (FvwmButtons) move +0 -0
ok, this gave me weird results.. when i moved into the buttons, it came up,
when i moved out and into another widnow, it hid itself. when i moved out
and into the root window, it hid itself and then showed itself again!
I got it working using your root window detection code with the following:
*FvwmEvent focus_change showhidebuttons
DestroyFunc showhidebuttons
AddToFunc showhidebuttons "I" WindowID $0 (FvwmButtons) showbuttons
+ "I" WindowID $0 (!FvwmButtons) hidebuttons
+ "I" DestroyFunc root_focus
+ "I" AddToFunc root_focus I hidebuttons
+ "I" WindowId $0 DestroyFunc root_focus
+ "I" AddToFunc root_focus I NOP
+ "I" root_focus
AddToFunc hidebuttons "I" All (CirculateHit FvwmButtons) AnimatedMove 0p 1197p
AddToFunc showbuttons "I" All (CirculateHit FvwmButtons) AnimatedMove 0 -0
--
___________________________________________________________________________
Danny Dulai Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/ nirva_at_ishiboo.com
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Feb 23 2000 - 10:00:26 GMT