View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
Originally Posted by kwotski View Post
Could you be a bit more explicit about how you add this? I currently have:

Code:
 <menuitem priority="600" name="powerup_memain_endcurrenttask">
  <return>10</return>
  <po>osso-powerup-shutdown</po>
 </menuitem>
Do I add yours between the <menuitem> tags, or ..?
I put it after the return tags, like this: http://slexy.org/view/s21Wsg3jWi

I'll upload the source in a few hours (sorry, I won't be able to get to my computer before then) but all the program does is get the X11 root window, get the value of the "_MB_CURRENT_APP_WINDOW" property and get the value of the "_NET_WM_PID" property using the XID given by the current app window property.
 

The Following User Says Thank You to qwerty12 For This Useful Post: