Ubuntu

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

Reported by Thiago Teixeira on 2007-05-03
320
This bug affects 83 people
Affects Status Importance Assigned to Milestone
Ayatana Design
High
John Lea
One Hundred Papercuts
Medium
Unassigned
Unity
Medium
Andrea Azzarone
Xfwm4
Unknown
Unknown
metacity
Confirmed
Medium
compiz (Ubuntu)
Medium
Unassigned
Nominated for Maverick by Christian Giordano
metacity (Ubuntu)
Medium
Didier Roche
Nominated for Maverick by Christian Giordano
mutter (Ubuntu)
Wishlist
Unassigned
Nominated for Maverick by Christian Giordano
unity (Ubuntu)
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.

Related branches

lp:~andyrock/unity/fix-dnd-alttab
Merged into lp:unity at revision 3350
PS Jenkins bot: Approve (continuous-integration) on 2013-05-29
Marco Trevisan (Treviño): Approve on 2013-05-27
Thiago Teixeira (tvst) on 2007-05-04
description: updated

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
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
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.

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.

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

Changed in metacity (Ubuntu):
status: Confirmed → Triaged
VPablo (villumar) wrote :

Ok, thank you very much.

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 :)

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.

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.

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
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
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!

Benjamin Drung (bdrung) wrote :

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

Nigel Babu (nigelbabu) wrote :

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

Gabe Gorelick (gabegorelick) wrote :

Is there also a fix for this in compiz?

Nigel Babu (nigelbabu) wrote :
Vish (vish) wrote :

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

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?

metacity --replace after run de .deb

avada (dqeswn) wrote :

Thanks iacami! Never would have figured out...

Vish (vish) on 2010-06-11
Changed in hundredpapercuts:
milestone: none → maverick-round-8-potpourri
Didier Roche (didrocks) on 2010-06-24
Changed in mutter (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist

@dqeswn : could please post the resulting deb ?

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
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
Bilal Akhtar (bilalakhtar) wrote :

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

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
Gabe Gorelick (gabegorelick) wrote :

Filed bug #624810 for compiz.

Changed in metacity:
importance: Unknown → Medium
tags: added: patch
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.

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
Didier Roche (didrocks) wrote :

yeah yeah… :-)

dayf (dayf) wrote :

will this be fixed in ubuntu 11.04? cheers

Sadly, this is still true with Precise 12.04

Changed in compiz:
status: Invalid → New
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) on 2012-06-20
no longer affects: unity
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?

Daniel van Vugt (vanvugt) wrote :

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

John Lea (johnlea) on 2012-06-21
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) on 2012-08-08
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
Chris Wilson (notgary) on 2012-08-09
Changed in hundredpapercuts:
milestone: maverick-round-8-potpourri → quantal-11-misc
Tim Penhey (thumper) on 2012-09-14
Changed in unity:
milestone: backlog → none
Changed in compiz (Ubuntu):
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
John Lea (johnlea) on 2012-10-09
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) on 2012-10-09
Changed in metacity (Ubuntu):
importance: Wishlist → Medium
Chris Wilson (notgary) 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
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.

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) on 2013-04-04
Changed in ayatana-design:
importance: Medium → High
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) on 2013-04-25
Changed in unity:
milestone: 7.0.1 → 7.1.0
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
Changed in unity (Ubuntu):
status: In Progress → Fix Committed
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
Chris Wilson (notgary) on 2013-06-07
Changed in hundredpapercuts:
milestone: raring-compiz → none
status: Triaged → Fix Released
Changed in unity (Ubuntu Raring):
status: New → Confirmed
MC Return (mc-return) wrote :

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

no longer affects: compiz
Stephen M. Webb (bregma) wrote :

Fix Released in Unity Unity 7.1.0.

Changed in unity:
status: Fix Committed → Fix Released
przekop (przekop) wrote :

Will Unity 7.1 be availbe in Raring repositories?

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.

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)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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