GNOME Bugzilla – Bug 635485
Doesn't always focus tab on drag hover
Last modified: 2012-10-22 22:46:57 UTC
When I use drag&drop between tabs in a Nautilus window, the target tab sometimes does not pop to foreground although the mouse pointer is exactly over it. It seems that the tab is switched only if the mouse pointer is long enough over the pixels *around* the tab name. So if I move the mouse slowly from one tab name to the other then it mostly works as expected. But if I move quickly and stop over the tab name (a black rectangle is drawn around the name), then it does not work, and I have to leave and enter the tab slower again. I checked out Ubuntu Lucid and Maverick (nautilus 2.30 and 2.32) and Fedora 14 (nautilus 2.32) - all these are affected.
I see a slightly different behavior. It seems to switch tabs on hover fine except in the case where it was about to switch to a different tab. 1. Drag item from tab 1 to tab 2's label 2. After a moment, quickly drag same item over tab 3's label What will happen is that tab 2 will pop forward even though you are over tab 3.
@William: Do you use Nautilus 2.32 or 3.x? Anyway I think you see the very same effect: if the mouse pointer moves quickly enough from outside of a tab (tab 3 in your case) onto its label text then this tab will not be focused. Perhaps the label widget ignores mousemove events... BTW: Meanwhile I use Ubuntu Natty (with nautilus 2.32.2.1) and Linux Mint 13 (with caja 1.2.1) - both are still affected.
This is mostly a GtkNotebook bug, combined with the (questionable) use we make of tab labels. I filed https://bugzilla.gnome.org/show_bug.cgi?id=684415 for the GTK side of the bug, but Nautilus will need to be patched as well, to handle tab switching manually.
Created attachment 224797 [details] [review] window-slot-dnd: handle tab switching on hover ourselves Since we handle envets manually.
Thank you Cosimo! Your patches definitely look like a fix for this bug. The patches are for Gnome 3.x, aren't they? I'd be glad to help porting them to Nautilus forks like Caja or Nemo.
(In reply to comment #5) > The patches are for Gnome 3.x, aren't they? I'd be glad to help porting them to > Nautilus forks like Caja or Nemo. Patches are for git master of GTK+ and Nautilus.
Attachment 224797 [details] pushed as 7a0001d - window-slot-dnd: handle tab switching on hover ourselves Pushed now that the GTK patches have been committed.