Re: hide menu on mouse click outside it (was: Re: [patch] awful.menu [...])

2012-05-06 Thread Anurag Priyam
ping! On Mon, Apr 23, 2012 at 12:22 AM, Anurag Priyam anurag08pri...@gmail.com wrote: On Tue, Apr 3, 2012 at 11:13 AM, Anurag Priyam anurag08pri...@gmail.com wrote: On Wed, Feb 29, 2012 at 3:59 PM, Uli Schlachter psyc...@znc.in wrote: Anyone out there who opens up a popup menu, then clicks

Re: hide menu on mouse click outside it (was: Re: [patch] awful.menu [...])

2012-04-22 Thread Anurag Priyam
On Tue, Apr 3, 2012 at 11:13 AM, Anurag Priyam anurag08pri...@gmail.com wrote: On Wed, Feb 29, 2012 at 3:59 PM, Uli Schlachter psyc...@znc.in wrote: Anyone out there who opens up a popup menu, then clicks somewhere else and expects the menu to stay open? If yes, speak up now or stay quiet

Re: hide menu on mouse click outside it (was: Re: [patch] awful.menu [...])

2012-04-22 Thread Anurag Priyam
On Wed, Apr 4, 2012 at 12:30 AM, Uli Schlachter psyc...@znc.in wrote: On 03.04.2012 08:22, Anurag Priyam wrote: Also, how can I pass a normal cursor to mousegrabger?  I don't wan't the cursor to change -- looks silly. There is a list of mouse cursors in common/xcursor.c. I guess you want

Re: hide menu on mouse click outside it (was: Re: [patch] awful.menu [...])

2012-04-03 Thread Anurag Priyam
On Tue, Apr 3, 2012 at 11:13 AM, Anurag Priyam anurag08pri...@gmail.com wrote: [...] I can fix it.  I need to determine that mouse was clicked outside menu.  So maybe I can attach a handler to 'press' signal on mouse, but if it was not clicked on any visible menu (not sure how to determine

Re: hide menu on mouse click outside it (was: Re: [patch] awful.menu [...])

2012-04-03 Thread Uli Schlachter
On 03.04.2012 08:22, Anurag Priyam wrote: On Tue, Apr 3, 2012 at 11:13 AM, Anurag Priyam anurag08pri...@gmail.com wrote: [...] I can fix it. I need to determine that mouse was clicked outside menu. So maybe I can attach a handler to 'press' signal on mouse, but if it was not clicked on

hide menu on mouse click outside it (was: Re: [patch] awful.menu [...])

2012-04-02 Thread Anurag Priyam
Dug this up for context: On Thu, Mar 1, 2012 at 9:38 PM, Uli Schlachter psyc...@znc.in wrote: On 01.03.2012 10:52, Anurag Priyam wrote: On Wed, Feb 29, 2012 at 3:59 PM, Uli Schlachter psyc...@znc.in wrote: Anyone out there who opens up a popup menu, then clicks somewhere else and expects the

Re: hide menu on mouse click outside it (was: Re: [patch] awful.menu [...])

2012-04-02 Thread Anurag Priyam
On Tue, Apr 3, 2012 at 11:13 AM, Anurag Priyam anurag08pri...@gmail.com wrote: So I put in `gears.debug.dump(mouse.buttons, 'buttons')` in the callback to mousegrabber the first thing and guess what I get each time after first mouse click: buttons : table: 0xb93c30    1 : true (boolean)