Oleksandr Gavenko
2012-09-29 21:36:53 UTC
I want to debug strange behaviour (if any interesting look below).
I spend large time in reading and searching over Internet, but does not found
tools, that help me. Most useful utils is:
$ xev -id $ID
But my problem occur when window created so xev doesn't help me.
I also try use xmon from:
http://ftp.x.org/contrib/devel_tools/
but can't make it work...
I have experience with Microsoft tool Spy++. Is something similar exist for X
Window (on StackOwerflow I found negative answers...)?
I have several window with same class and want to record all event that they
receive, some of them can be created in any time...
================================================================
With ~/.fvwm/config with only:
DestroyFunc MyFuncFocusWindow
AddToFunc MyFuncFocusWindow
+ I FlipFocus
# + I WarpToWindow 50 50
DestroyModuleConfig FvwmEvent-NewWindow
*FvwmEvent-NewWindow: Cmd
*FvwmEvent-NewWindow: add_window MyFuncFocusWindow
AddToFunc StartFunction I Module FvwmEvent
AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow
I have non expected behaviour in Emacs. Lets explain: with "M-x ediff-buffer"
command in Emacs Emacs spawn new window. By default it places on top right
corner of current page/desk.
But with MyFuncFocusWindow ediff window appear one page below and one page
right.
By design ediff window is helper window and must be showed on same page as
main Emacs window.
Such behaviour reproduced with Focus, FlipFocus, and WarpToWindow command.
If I restart Fvwm without killing fvwm (through default menu) strange
behaviour disappear.
I think that ediff window appear with some offset from main Emacs window, and
then move itself to proper place. FvwmEvent injected in the middle of this
process and break it.
================================================================
I use FvwmEvent only for "WarpToWindow 50 50"...
I spend large time in reading and searching over Internet, but does not found
tools, that help me. Most useful utils is:
$ xev -id $ID
But my problem occur when window created so xev doesn't help me.
I also try use xmon from:
http://ftp.x.org/contrib/devel_tools/
but can't make it work...
I have experience with Microsoft tool Spy++. Is something similar exist for X
Window (on StackOwerflow I found negative answers...)?
I have several window with same class and want to record all event that they
receive, some of them can be created in any time...
================================================================
With ~/.fvwm/config with only:
DestroyFunc MyFuncFocusWindow
AddToFunc MyFuncFocusWindow
+ I FlipFocus
# + I WarpToWindow 50 50
DestroyModuleConfig FvwmEvent-NewWindow
*FvwmEvent-NewWindow: Cmd
*FvwmEvent-NewWindow: add_window MyFuncFocusWindow
AddToFunc StartFunction I Module FvwmEvent
AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow
I have non expected behaviour in Emacs. Lets explain: with "M-x ediff-buffer"
command in Emacs Emacs spawn new window. By default it places on top right
corner of current page/desk.
But with MyFuncFocusWindow ediff window appear one page below and one page
right.
By design ediff window is helper window and must be showed on same page as
main Emacs window.
Such behaviour reproduced with Focus, FlipFocus, and WarpToWindow command.
If I restart Fvwm without killing fvwm (through default menu) strange
behaviour disappear.
I think that ediff window appear with some offset from main Emacs window, and
then move itself to proper place. FvwmEvent injected in the middle of this
process and break it.
================================================================
I use FvwmEvent only for "WarpToWindow 50 50"...
--
Best regards!
Best regards!