GNOME Bugzilla – Bug 319348
after clicking on the panel on the second screen the run application dialog still opens on the first screen
Last modified: 2006-01-30 17:27:45 UTC
Please describe the problem: Clicking gnome panel does not properly switch the screen where alt+f2 opens the run application dialog. Steps to reproduce: 1. click somewhere in screen 1 2. press alt+f2 3. click gnome panel in screen 2 4. press alt+f2 5. click desktop background in screen 2 6. press alt+f2 Actual results: 2. run application opens on screen 1 (correct) 4. run application opens on screen 1 (wrong) 6. run application opens on screen 2 (correct) Expected results: The run application dialog should open on screen 2 already after step 4. Does this happen every time? yes Other information:
Clicking the panel doesn't give it the focus, so I suppose the focus is still on screen 1 and thus there's no reason that pressing alt+f2 would open the run dialog in screen 2. Adding Elijah to cc since he's more clever than me :-) (and he can confirm if I'm right).
> Clicking the panel doesn't give it the focus, so I suppose the focus is still on > screen 1 and thus there's no reason that pressing alt+f2 would open the run > dialog in screen 2. I concluded that too as the same happens in another desktop environment. I suppose this should be improved in xorg then? My user intuition is that clicking the panel should give it focus.
It's more a window manager issue than a xorg issue, really :-) Maybe metacity should give the focus to a window in the screen. Dunno.
Vincent is correct as far as focus and the panel is concerned in comment 1. I really have little clue about how screen-to-open-window-on is selected (I would have assumed it's the screen where the mouse is but you guys seem to be saying it's the screen where the focus window is), but I do know that we have all kinds of dual-screen (sans xinerama) issues in metacity. I should make a tracker bug for them or something and try to find some time to fix them (since I was recently told how to emulate a dual-screen setup with a single screen). Anyway, I don't think this is gnome-panel related at all so I'll reassign to Metacity.
Created attachment 57881 [details] [review] When mouse switches screen, focus default window on new workspace This patch fixes this bug and a couple related ones. I'm not entirely sure it's entirely right for click-to-focus (we might want to wait until after a click on a window or dock on the second screen); but it is at least better than the current behavior. Additionally, (1) a couple couple google searches and reading of mailing lists on the topic seem to suggest this (though not that strongly), and (2) the alternative of waiting until a window is clicked on would be really weird if the first window clicked on is a panel because in that case it'd mean transferring focus to a new window that isn't even the one being clicked on.
Committing so I can get it in the release today.