[JWM] right or middle click on "Send To" and it will change desktop?

Jeremy C. Reed reed at reedmedia.net
Tue Jan 29 11:51:43 CST 2008


On Tue, 22 Jan 2008, Jeremy C. Reed wrote:

> I want to add to Send To so that it will change desktop if middle click or 
> right click on desktop.
> 
> So it will send window to other desktop and also change desktops too.
> 
> I tried adding in RunWindowCommand()
> 
> 	ChangeDesktop(action->data.i);
> 
> after the       SetClientDesktop(client, action->data.i); 
> but didn't do anything. (For this test just wanted to change desktop any 
> time I click choice for Send To.


It did work for me -- I did a "Restart" which didn't actually exit jwm. It 
worked when I really started a new jwm.

The RunWindowCommand() doesn't have the mouse event information sent to 
it, so can't check the event.xbutton.button for Button2 or Button3. I 
could have the event passed to RunWindowCommand but that also means other 
functions will need to be changed to accept event (in addition to just 
action).

Any thoughts on this?



  Jeremy C. Reed


More information about the JWM mailing list