Re: Get clicks OUTSIDE the window



On Thu, Jan 02, 2003 at 12:51:47PM +0000, Diego Zuccato wrote:
> 
> I'm facing another problem I can't see how to solve :-(
> I'd need to catch mouse clicks that happen outside my app to make a
> (modal) popup window disappear from the screen.
> I've had a look at gtkmenu* but couldn't find the relevant bit :-( Popup
> menus behaviour is just like what I'd need for my win...
> 
> I'm using Gtk+ 1.2.10.
> 

You have to gdk_grab_pointer() and gtk_grab_add() during the time that 
the modal window is active.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]