Alt-Tab - Not possible to alt-tab during a drag-and-drop operation

Bug #111939 reported by Thiago Teixeira
336
This bug affects 87 people
Affects Status Importance Assigned to Milestone
Ayatana Design
Fix Committed
High
John Lea
Metacity
Fix Released
Medium
One Hundred Papercuts
Fix Released
Medium
Unassigned
Unity
Fix Released
Medium
Andrea Azzarone
Xfwm4
Unknown
Unknown
compiz (Ubuntu)
Triaged
Medium
Unassigned
Nominated for Maverick by Christian Giordano
metacity (Ubuntu)
Fix Released
Medium
Didier Roche-Tolomelli
Nominated for Maverick by Christian Giordano
mutter (Ubuntu)
Fix Released
Wishlist
Unassigned
Nominated for Maverick by Christian Giordano
unity (Ubuntu)
Fix Released
Medium
Andrea Azzarone
Nominated for Maverick by Christian Giordano

Bug Description

In some window managers (I believe KWin is one of them) the user is able to initiate a drag-and-drop operation, then press alt-tab to raise a window that will be the drop target, and only then release the mouse button so that the drag-and-drop is performed. This is not possible with Metacity, Beryl, Compiz or Xfwm. It is unclear to me whether this is a limitation of the window manager or some other part of the system.

------------------------------------------

Use Case:

Dragging movie/audio files from nautilus to totem.

Steps to Reproduce:

1. open totem media player full screen
2. open nautilus full screen
3. browse to media files
4. select some media files (e.g. a movie file) and move it to start a drag and drop operation
5. press Alt+Tab

Observations:

Nothing happens.

Expected Results:

Alt+Tab should allow the user to switch tasks and preserve the drag state, so the user can drag files from one application to another.

Notes:

Drag and drop works if the applications are tiled to the left/right of each other, or if they are windowed so it should work when they are full screen.

Tags: patch udp

Related branches

Thiago Teixeira (tvst)
description: updated
Revision history for this message
agro1986 (agro1986) wrote : Re: Not possible to alt-tab during a drag-and-drop operation

Confirmed on Ubuntu 7.04 final (Gnome)

Procedure:
1) Open 2 windows of Nautilus
2) Initiate 'drag and drop' in one window (click-hold an item (e.g., file), move the mouse)
3) Press alt+tab

Result: The alt+tab won't work

The usefulness of alt+tab while doing DnD is that it is a lot faster than binging the intended window by hovering its entry on the task bar.

In Windows XP, we can use alt+tab while doing 'drag and drop'.

Changed in metacity:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug, that's known upstream, http://bugzilla.gnome.org/show_bug.cgi?id=135056

Changed in metacity:
assignee: nobody → desktop-bugs
importance: Undecided → Wishlist
Changed in metacity:
status: Unknown → Confirmed
Revision history for this message
Kirils Solovjovs (linux-kirils) wrote :

it also should be noted that window focuses on mouse_down, not on mouse_up, so dragging from a window is not possible without bringing it in front of other windows.

Revision history for this message
VPablo (villumar) wrote :

Please, give a hand in this wishlist, it will be awesome if implemented. I think is the only thing I miss from Windows.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Seems like upstream is about to get this fixed. Setting to "triaged".

Changed in metacity (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
VPablo (villumar) wrote :

Ok, thank you very much.

Revision history for this message
drx (drx) wrote :

BTW, DnD also doesn't work with all the funky Compiz window switching mechanisms ... which makes them much less useful and look like pure eye candy. It would be so great to take a file, "expose" all windows and then drop it onto a thumbnail'd window! Such stuff works fine on OSX btw :)

Revision history for this message
Thiago Teixeira (tvst) wrote :

drx: A workaround for that is to set Compiz's Scale to activate on the screen corner. It's not as nice as using the key combo, but it's something at least :) . Since it works with screen corners, though, I think the problem may be relate to GTK grabbing all keyboard events when drag-and-drop is going on.

Revision history for this message
Nelson Benitez (gnel) wrote :

According to https://bugzilla.gnome.org/show_bug.cgi?id=135056 Fedora is already shipping a patch that fixes this issue, how can we request Ubuntu to incorporate that patch because this is a good usability feature Ubuntu should also have.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

Confirming this bug for Hundred Papercuts since it only requires a small patch -- <http://bugzilla-attachments.gnome.org/attachment.cgi?id=136114> -- to be solved and since Fedora already includes this it should be working correctly.

Changed in hundredpapercuts:
status: New → Confirmed
Revision history for this message
Vish (vish) wrote :

I'v subscribed the main sponsors , since the patch is a small one and mclasen mentions it is working fine in Fedora.
But upstream has been slow to react on this bug. Could the sponsors comment on mclasen's patch http://bugzilla-attachments.gnome.org/attachment.cgi?id=136114 and if we can include it in Ubuntu as well?

Changed in hundredpapercuts:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
sven.buschbeck (bucks) wrote :

Hi all!

Thanks for mentioning this bug - but I really think, it should be of higher importance. Actually, for me, this issue is the only reason why I have to use KDE, though I would really love to switch to Gnome - but not without DnD+Alt-Tab.
There would be a very happy Gnome user, if this one gets fixed! :)

Thanks guys!

Revision history for this message
Benjamin Drung (bdrung) wrote :

I unsubscribed ubuntu-sponsors, because there is no debdiff to sponsor. I subscribe ubuntu-reviewers for the patch.

Revision history for this message
Nigel Babu (nigelbabu) wrote :

Debdiff containing patch from upstream gnome to fix this bug in metacity.

Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

Is there also a fix for this in compiz?

Revision history for this message
Nigel Babu (nigelbabu) wrote :
Revision history for this message
Vish (vish) wrote :

Subscribing main sponsors again , we now have a debdiff ready to sponsor.
 and unsubscribing review team.

Revision history for this message
avada (dqeswn) wrote :

I followed the guide on wiki.ubuntu.org ( https://wiki.ubuntu.com/UbuntuPackagingGuide/BuildFromDebdiff?highlight=(debdiff) ) to patch metacity. I got four ".deb"s as a result, installed all of them. But it works the same, I still can't change to another window while dragging something.

By the way When could this make it to metacity?

Revision history for this message
iacami (p-launchpad-algumacoisa-org) wrote :

metacity --replace after run de .deb

Revision history for this message
avada (dqeswn) wrote :

Thanks iacami! Never would have figured out...

Vish (vish)
Changed in hundredpapercuts:
milestone: none → maverick-round-8-potpourri
Changed in mutter (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Mathieu Leplatre (mathieu.leplatre) wrote :

@dqeswn : could please post the resulting deb ?

Revision history for this message
Mathieu Leplatre (mathieu.leplatre) wrote :

I confirm Nigel's debdiff fixes the problem in metacity.

Let's now catch up with Compiz to fix this for most desktop users ;)

Changed in metacity (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → Bilal Akhtar (bilalakhtar)
status: Triaged → In Progress
Changed in hundredpapercuts:
assignee: nobody → Bilal Akhtar (bilalakhtar)
status: Triaged → In Progress
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

ha, it appears this had already been fixed by didrocks

metacity (1:2.30.1-2ubuntu2) maverick; urgency=low

  * remove debian/patches/04_worspaces_default_name.patch:
    - drop "Desk" term
  * add debian/patches/04_support_drag_drop_with_alt_tab.patch:
    - support alt-tab during drag and drop operation (LP: #11939)

 -- Didier Roche <email address hidden> Thu, 24 Jun 2010 10:53:11 +0200

Changed in metacity (Ubuntu):
assignee: Bilal Akhtar (bilalakhtar) → Didier Roche (didrocks)
status: In Progress → Fix Released
Changed in hundredpapercuts:
assignee: Bilal Akhtar (bilalakhtar) → nobody
status: In Progress → Triaged
Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

This bug wasn't auto-closed because of a typo in the bug number in the changelog :(

Revision history for this message
Vish (vish) wrote :

This bug was always only about metacity and not compiz! The compiz task was opened only recently.

Kindly open a separate bug for the compiz issue!

Changed in hundredpapercuts:
status: Triaged → Fix Released
Changed in compiz:
status: New → Invalid
Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

Filed bug #624810 for compiz.

Changed in metacity:
importance: Unknown → Medium
tags: added: patch
Revision history for this message
VPablo (villumar) wrote :

I can confirm that in Maverick 32 bits (metacity) works alt-tab in a drag and drop operation, thanks. Now, the next step is compiz.

Revision history for this message
Vish (vish) wrote :

This was fixed in mutter too..! Someone just forgot the bug number! ;p

mutter (2.31.2-3ubuntu1) maverick; urgency=low

  * Merge from debian experimental, remaining changes:
...
    - debian/patches/04_support_drag_drop_with_alt_tab.patch:
      support alt-tab during drag and drop operation
...

 -- Didier Roche <email address hidden> Tue, 29 Jun 2010 11:44:19 +0200

Changed in mutter (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

yeah yeah… :-)

Revision history for this message
dayf (dayf) wrote :

will this be fixed in ubuntu 11.04? cheers

Revision history for this message
Mathieu Leplatre (mathieu.leplatre) wrote : Re: Not possible to alt-tab during a drag-and-drop operation

Sadly, this is still true with Precise 12.04

Changed in compiz:
status: Invalid → New
Revision history for this message
dayf (dayf) wrote :

Sadly, this is still true with Precise 12.04 [3].
Thus, sticking to Ubuntu 11.04 with Unity 2D.

Omer Akram (om26er)
no longer affects: unity
Revision history for this message
VPablo (villumar) wrote :

I'm sorry but, is this bug (2007) duplicate from the other one (2012)?, that bug is for Unity and this is for Compiz, isn't it?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fixed. All the duplicates point back to this one now.

John Lea (johnlea)
description: updated
Changed in ayatana-design:
assignee: nobody → John Lea (johnlea)
importance: Undecided → Medium
status: New → Triaged
tags: added: udp
Changed in unity:
status: New → Triaged
milestone: none → backlog
Changed in hundredpapercuts:
status: Fix Released → Triaged
importance: Low → Medium
Changed in compiz:
status: New → Confirmed
John Lea (johnlea)
Changed in ayatana-design:
status: Triaged → Fix Committed
summary: - Not possible to alt-tab during a drag-and-drop operation
+ Alt-Tab - Not possible to alt-tab during a drag-and-drop operation
Changed in hundredpapercuts:
milestone: maverick-round-8-potpourri → quantal-11-misc
Tim Penhey (thumper)
Changed in unity:
milestone: backlog → none
Changed in compiz (Ubuntu):
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
John Lea (johnlea)
Changed in compiz:
importance: Undecided → Medium
Changed in unity:
importance: Undecided → Medium
Changed in compiz:
status: Confirmed → Triaged
Changed in compiz (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in unity (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
John Lea (johnlea)
Changed in metacity (Ubuntu):
importance: Wishlist → Medium
Revision history for this message
Chris Wilson (notgary-deactivatedaccount) wrote :

I've targeted this to Compiz, but I'm not sure that's appropriate. Can someone please confirm what's actually causing this?

Changed in hundredpapercuts:
milestone: quantal-11-misc → raring-compiz
Revision history for this message
Sander (svl-launchpad) wrote :

FWIW, in my ubuntu 12.04 this works correctly under unity-2d - it's only 3d unity where alt-tab doesn't trigger during a drag action.

Revision history for this message
Mathieu Leplatre (mathieu.leplatre) wrote :

I had switched to Unity2D for a while, without figuring out :) Thank you for the feedback ! I now can add email attachment with no pain !

It would be worth trying out unity-next just for that matter actually !

John Lea (johnlea)
Changed in ayatana-design:
importance: Medium → High
Andrea Azzarone (azzar1)
Changed in unity:
assignee: nobody → Andrea Azzarone (andyrock)
status: Triaged → In Progress
milestone: none → 7.0.1
Changed in unity (Ubuntu):
assignee: nobody → Andrea Azzarone (andyrock)
status: Triaged → In Progress
Stephen M. Webb (bregma)
Changed in unity:
milestone: 7.0.1 → 7.1.0
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:unity at revision None, scheduled for release in unity, milestone 7.1.0

Changed in unity:
status: In Progress → Fix Committed
Andrea Azzarone (azzar1)
Changed in unity (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (12.1 KiB)

This bug was fixed in the package unity - 7.0.0daily13.06.07-0ubuntu1

---------------
unity (7.0.0daily13.06.07-0ubuntu1) saucy; urgency=low

  [ Ted Gould ]
  * gtk_icon_info_free() is deprecated for g_object_unref().
  * Upstart event for when the indicators are loaded by the panel
    service.
  * Add an upstart job to unity-common.
  * Manage Unity Panel Service's lifecycle with Upstart.

  [ Didier Roche ]
  * add dep on autopilot-desktop.
  * Revert the panel on upstart from ted, it doesn't respawn as expected
    when another service try to communicate with the panel service and
    the consequence is a lot of tests failing

  [ Nick Dedekind ]
  * Uses a gobject weak ref to test for object deletion in the
    GLibObject tests. Previously was checking with G_IS_OBJECT on an
    invalid pointer, which was causing a segfault

  [ Manuel de la Pena ]
  * Adds support for payment previews that will allow users to buy music
    from within the dash. .

  [ Mathieu Trudel-Lapierre ]
  * Increase timeouts for hud functional and search tests.

  [ Francis Ginther ]
  * Handle StateNotFoundError when querying the label of a hud button.

  [ Łukasz 'sil2100' Zemczak ]
  * Now that we're using the new HUD, there have been some changes that
    typically cause test_hud tests to fail. Fix the tests to fit the new
    model. The first one is that generally we do not have indicator
    entries visible in the HUD anymore. Only application menu entries
    are in it now. The second one - the way the results are displayed is
    different. Now, instead of "Menu > Entry" we have "Entry (Menu)"
    etc.
  * Fix two HUD failures related to HUD slow action activation.
  * Fix some autopilot test failures, some related to test_shortcut_hint
    and some to test_scroll in launcher.
  * Modify all the hud_query_check lambdas to be more smart and error-
    checking. Same for the selected_hud_button method in the HUD
    emulator. Also, get rid of the troublesome test_gedit_undo and
    change it into test_gedit_save, which is easier to test and anyway
    tests what we want. Besides that we also now try to handle the
    StateNotFoundError exception in the HUD emulator, another cause of
    some AP failures.
  * Add a flag for -Wno-error=unused-local-typedefs, since this causes a
    FTBFS on ARM

  [ Michal Hruby ]
  * Don't activate a result twice after pressing Enter. (LP: #1188191)

  [ Sebastien Bacher ]
  * Use '%s:' string for preview hints, rather than just appending ':'.
    (LP: #1074038)

  [ Marco Trevisan (Treviño) ]
  * IconRenderer: preprocess an icon if its emblem has been shown/hidden
    In that way we can update its transformation. (LP: #1171476,
    #1171663)
  * UnityWindow: don't draw the panel shadow above a fullscreen window.
    (LP: #1171934)
  * UnityCore: add GtkWrapper to handle GtkIconInfo correctly for
    different GTK versions Fix a memory leak in LauncherIcon. (LP:
    #1180790)
  * SwitcherController: use proper long long types for
    WindowActiveNumber Otherwise an overflow can cause bad window
    selection after long uptime.
  * Unity: "s/unsigned long long/uint64_t/g".

  [ Chris Townsend ]
  * Fixes issue where minimiz...

Changed in unity (Ubuntu):
status: Fix Committed → Fix Released
Changed in hundredpapercuts:
milestone: raring-compiz → none
status: Triaged → Fix Released
Changed in unity (Ubuntu Raring):
status: New → Confirmed
Revision history for this message
MC Return (mc-return) wrote :

As this bug affects the Unity Switcher and is fixed, I've removed Compiz.

no longer affects: compiz
Revision history for this message
Stephen M. Webb (bregma) wrote :

Fix Released in Unity Unity 7.1.0.

Changed in unity:
status: Fix Committed → Fix Released
Revision history for this message
przekop (przekop) wrote :

Will Unity 7.1 be availbe in Raring repositories?

Revision history for this message
Stephen M. Webb (bregma) wrote :

Unity 7.1 will not be backported to raring.

It's possible to backport individual fixes to the 7.0 series, but someone would need to volunteer to do that.

Revision history for this message
ariel cornejo (arielco) wrote :

Why does this have "Fix Released" status in Unity? I have 7.1.2 (Saucy) and still can't use the Window Switcher while dragging.

no longer affects: unity (Ubuntu Raring)
Changed in metacity:
status: Confirmed → Fix Released
tags: added: rls-w-incoming
tags: added: rls-x-incoming
removed: rls-w-incoming
Revision history for this message
Will Cooke (willcooke) wrote :

At this point we won't be backporting this fix. It will be included in the next LTS.

tags: removed: rls-x-incoming
Revision history for this message
Alex ARNAUD (alexarnaud) wrote :

Hello all,

Could it be possible to backport this fix also in the default Compiz switcher?

Best regards,
Alex.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

You will have to reimplement something similar to what Unity switcher did I think. The implementation is different, so it needs to be a proper implementation.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.