After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 154918 - panel menu window cant be Menu or UI Grab actioned
panel menu window cant be Menu or UI Grab actioned
Status: RESOLVED FIXED
Product: gok
Classification: Deprecated
Component: general
unspecified
Other All
: High major
: ---
Assigned To: bill.haneman
Panel Maintainers
AP1 PATCH
Depends on:
Blocks:
 
 
Reported: 2004-10-08 16:32 UTC by bill.haneman
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch fixes for popup menus such as panel menu and context menus. (1.88 KB, patch)
2004-10-29 12:46 UTC, bill.haneman
committed Details | Review

Description bill.haneman 2004-10-08 16:32:04 UTC
using GOK (non corepointer mode), activate a panel and invoke the 'click' action
on the main menu button (as shown in UI Grab).  
As a new window pops up, GOK branches to Main and doesn't display active Menus
or UI Grab buttons.

This used to work, but to be honest I don't know how it did, since GOK is
getting a window:deactivate event from the bottom panel, but no window:activate
event from the popped-up menu.
Comment 1 bill.haneman 2004-10-08 16:34:29 UTC
I understand that this may end up bounced to gail, or perhaps less likely, to
GOK, if we find a reliable workaround.  I'd like Padraig's opinion on when to
expect 'activate' from popup menus, and why we're not getting a matched set of
activate/deactivate events here.
Comment 2 padraig.obriain 2004-10-11 09:22:19 UTC
When the menu is popped up you should get a window:deactivate event for the
panel and a focus event for the menu. You do not get activate event from the
popup menu.
Comment 3 Frances Keenan 2004-10-11 13:54:29 UTC
Bill, is there a bug logged in Bugster for this ?
Comment 4 Frances Keenan 2004-10-12 08:37:58 UTC
see bugster bug :

6177484 - panel menu window cant be Menu or UI Grab actioned
Comment 5 bill.haneman 2004-10-12 13:46:32 UTC
moving back to gok for more evaluation, on basis of padraig's comments.
Comment 6 bill.haneman 2004-10-12 13:51:40 UTC
this is reportedly a regression, but I don't understand quite why the behavior
changed.
Comment 7 David Bolter 2004-10-12 20:31:01 UTC
Just an FYI, I'll be looking into this bug tomorrow morning. 
Comment 8 David Bolter 2004-10-13 13:59:11 UTC
I am seeing something possibly related:
using non-core pointer (direct selection)
launch gok
launch gedit
uigrab
open
click
uigrab

Gok should now show all the open dialog gui but doesn't.  Instead focus seems to
end up back on gedit's main window.  Trying to activate the Open dialog and
uigrabbing again fails in the same way.

Appears to be weird focus issues using non-core pointer.  Still investigating...
Comment 9 David Bolter 2004-10-13 14:18:27 UTC
Hmmm...
Because it is so important that GOK is not occluded by other windows, gok
frequently calls gdk_window_raise to raise itself (e.g. on device events).

It appears that when gok makes this call, the window manager (or other?) raises
GOK (not noticable unless GOK was occluded), but then gives focus to the window
under the core pointer (where ever it may be)!  This doesn't appear to happen
when using the core pointer to operate GOK.

I'm not sure when this focus under the core pointer behaviour was introduced. 
I'd like some help triaging this one...  

The only thing I can see we can do on the GOK side is remove the raise window
calls, but then we'll very likely see cases of GOK being occluded - which is
very bad.
Comment 10 padraig.obriain 2004-10-13 15:28:39 UTC
I tried what you described in comment #8 and found it did not work when using
gok 0.11.10 but does work when I build gok from CVS HEAD. I am using a non-core
pointer in dwell mode.

With both versions of gok the originally reported problem still appears.
Comment 11 David Bolter 2004-10-13 18:17:13 UTC
Padraig, I'm using gok from CVS HEAD.  Did you note comment #9 when you tested?
Comment 12 padraig.obriain 2004-10-14 09:28:58 UTC
Yes but as I could not reproduce the problem when using CVS HEAD I could not
evaluate the comment.
Comment 13 David Bolter 2004-10-14 12:59:02 UTC
Understood.  I was just wondering if by chance the core pointer happened to be
in the 'right place' during your gok cvs head test.
Comment 14 padraig.obriain 2004-10-14 13:17:14 UTC
Where should I put the core pointer to see the abherrant behavior?
Comment 15 David Bolter 2004-10-14 14:07:52 UTC
In my comment #8 case, move the core pointer off the open dialog.
Comment 16 Calum Benson 2004-10-21 16:50:29 UTC
Apologies for spam-- ensuring Sun a11y team are cc'ed on all current a11y bugs.
 Filter on "SUN A11Y SPAM" to ignore.
Comment 17 bill.haneman 2004-10-26 19:08:03 UTC
David: please split out the (independent) issue in comment #8.  I am not sure
it's related, and the behaviors seem to occur independently of one another (see
Padraig's comments).  

Meanwhile, bumping up severity because this is an efficiency problem and
high-visibility.
Comment 18 bill.haneman 2004-10-29 12:46:39 UTC
Created attachment 33200 [details] [review]
patch fixes for popup menus such as panel menu and context menus.