Hi all. I'm trying to add mouse event handling to XFWM in the window switcher because using alt+tab when you have 10 or more windows is annoying. The problem is that the API is deeply abstracted and the mouse events seems to have been filtered in a variable called display_info->xfilter of DisplayInfo type that has an xfilter of XfwmFilter type. How can I add the mouse button press event mask to this filter variable so in the loop I get the mouse events?
It seems the problem is because the pointer event "grabbed" is LeaveWindowMask @ cycle.c around line 433.
I have set it to ButtonReleaseMask and put a g_message at clientCycleEventFilter~case ButtonRelease: and voilà!
I've spent two evenings to discover this. I think one of the big problems collaborating with Xfce, IMHO, is the lack of dev documentation or useful comments in code.
If there's a good material for XFWM4 and Xfce hacking in general, please let me know.
I'm also trying to implement bug 2052, it's pretty old and annoying.