GNOME Bugzilla – Bug 128134
Raise on focus to enhance DnD
Last modified: 2007-04-09 18:56:36 UTC
See this page for more information: http://www.phys.lsu.edu/students/merchan/GNOME/Recommendations/DnD/index.html By raising on focus in click-to-focus mode, metacity can allow drags to start without raising a window. The patch (to be attached) eliminates raising on client area clicks for both focus modes, and adds a raise on a subset of FocusIn events for click-to-focus mode.
Created attachment 21906 [details] [review] Raise on FocusIn, instead of ButtonPress
Bumping the priority level to High because a patch is attached.
Adding some more keywords, and marking this enhancement and a usability change.
I should note, by the way, that this won't actually work. The window is focused immediately on buttonpress, so raising it on focusin isn't going to change anything.
Created attachment 23780 [details] [review] Updated patch to match current sloppy focus policy
The method I had described at my website is now obsolete, which is one of the reasons the pages are down. I recently discovered another method which is much simpler and does not have the problems that method had. Bug #133047 depends on the other bugs which must be fixed to implement it. (As well as some closely related focus handling bugs.) An explanation will be put forth soon.
Gregory: Am I correct in understanding that your patches (both between this bug and the other ones you've filed), will only implement do-not-raise-on-DND for click-to-focus mode? That's the feeling I get from reading your reports, yet I think do-not-raise-on-DND should be available for sloppy and mouse focus modes too.
Elijah: Yes, that is correct. Without hurling due invective against clickless focus, I will grudgingly admit there is a way for it to support raiseless DnD. A policy, for only clickless focus, of raising on clicks outside the client area (e.g., frame or taskbar), or on keyboard-assigned focus, or on keyboard-activated raise, would allow raiseless DnD.
As per Gregory's comments in bug 76672 and bug 80984, this would require toolkit level changes as well, be incompatible with focus modes other than click-to-focus, and move focus policy from the window manager to applications. Odds of convincing all toolkit authors to accept such changes are essentially 0 (Lubos already objected on these grounds; see http://mail.gnome.org/archives/wm-spec-list/2004-April/msg00019.html). Don't raise on DND will instead be tracked in bug 152952 (and gtk bug 154260).