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 643302 - Alt-Tab not working with dialog
Alt-Tab not working with dialog
Status: RESOLVED DUPLICATE of bug 645026
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-25 16:11 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2011-07-13 18:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (576 bytes, text/x-python)
2011-02-25 16:11 UTC, Jasper St. Pierre (not reading bugmail)
  Details
shell-app: Fix a case where last_user_time isn't updated. (1.42 KB, patch)
2011-04-27 15:12 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-02-25 16:11:57 UTC
Created attachment 181926 [details]
test case

Simple, dumb test case attached.

1. Run test-dialog.py
2. Click "Open Dialog"
3. Alt-tab to another window on the same workspace.
4. Alt-tab back to the dialog.
5. Alt-tab, notice that you're alt-tabbing to the dialog, with your other window in first place.
6. Try closing the the test case window, then spam ^C because I'm too lazy to add a proper destroy handler.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-04-27 15:12:28 UTC
Created attachment 186746 [details] [review]
shell-app: Fix a case where last_user_time isn't updated.

When activating an uninteresting window, the last_user_time isn't updated,
because we aren't tracking the window that the user_time gets updated on.
Hack around this by setting the last_user_time in shell_app_activate when
activating an uninteresting window.
Comment 2 Colin Walters 2011-05-04 15:35:25 UTC
Review of attachment 186746 [details] [review]:

We have a general problem in that in some cases we want ALL windows of an app, and in others we only want the "interesting" ones, and ideally we'd keep track of both.  I think this patch is OK as a quick hack though.
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-05-04 16:27:03 UTC
Attachment 186746 [details] pushed as 74a39ae - shell-app: Fix a case where last_user_time isn't updated.
Comment 4 Owen Taylor 2011-05-24 21:07:15 UTC
Try changing your instructions:

 1. Run test-dialog.py
 2. Click "Open Dialog"
 3. Alt-tab to another window on the same workspace.
- 4. Alt-tab back to the dialog.
+ 4. Click on the dialog to return to it
 5. Alt-tab, notice that you're alt-tabbing to the dialog, with your other
    window in first place.
 6. Try closing the the test case window, then spam ^C because I'm too lazy to
add a proper destroy handler.

and I'm pretty sure you'll see similar misbehavior with your patch, so it isnt' a complete solution.
Comment 5 Jasper St. Pierre (not reading bugmail) 2011-05-24 21:18:23 UTC
The main problem here is that we're considering all dialogs uninteresting, so they don't get last_user_time updates. Should we just track dialog windows instead?
Comment 6 Jasper St. Pierre (not reading bugmail) 2011-07-13 18:28:12 UTC

*** This bug has been marked as a duplicate of bug 645026 ***