nanogui: Implicit button grabs


Previous by date: 20 Jun 2006 23:29:54 +0100 Re: Lynx and nxterm, Alex Holden
Next by date: 20 Jun 2006 23:29:54 +0100 RE: [nanogui] Implicit button grabs, Lars Törnkvist
Previous in thread: 20 Jun 2006 23:29:54 +0100 Implicit button grabs, Josh
Next in thread: 20 Jun 2006 23:29:54 +0100 RE: [nanogui] Implicit button grabs, Lars Törnkvist

Subject: Implicit button grabs
From: Josh ####@####.####
Date: 20 Jun 2006 23:29:54 +0100
Message-Id: <449876CD.7020303@wmis.net>

Hello everybody,

I have a program using a touchscreen set up with one window that is a 
child of GR_ROOT_WINDOW_ID.  This window has several children (each of 
whom have their own windows acting as buttons).  I use GrUnmapWindow and 
GrMapWindow to switch between the children when certain buttons are 
pressed.  All windows select for both BUTTON_UP and BUTTON_DOWN events.  
What I find is that sometimes when I press a button to switch windows 
the new window immediately does an implicit grab.  This makes it so that 
the first time I press on anything in the new window, I have to do it 
twice -- once to cause an implicit ungrab, and once to get the actual 
button I wanted.  Selecting for only BUTTON_DOWN events prevents this 
behavior, but I would like to be able to act on BUTTON_UP events as 
well.  Is there any way to get rid of this behavior?

Thanks,
Josh

Previous by date: 20 Jun 2006 23:29:54 +0100 Re: Lynx and nxterm, Alex Holden
Next by date: 20 Jun 2006 23:29:54 +0100 RE: [nanogui] Implicit button grabs, Lars Törnkvist
Previous in thread: 20 Jun 2006 23:29:54 +0100 Implicit button grabs, Josh
Next in thread: 20 Jun 2006 23:29:54 +0100 RE: [nanogui] Implicit button grabs, Lars Törnkvist


Powered by ezmlm-browse 0.20.