Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-03-18 19:49:52

ihernandez
Member
Registered: 2013-03-03
Posts: 1

Adding mouse event handling to XFWM cycle.c

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?

Tanks!
Ivan

Offline

#2 2013-08-07 00:32:09

AndreLDM
Member
From: Brazil
Registered: 2013-08-07
Posts: 2

Re: Adding mouse event handling to XFWM cycle.c

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.

Offline

Board footer

Powered by FluxBB