focus does not follow mouse during drag-and-drop

Bug #274407 reported by Leonard Michlmayr
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Compiz
Fix Released
Unknown
compiz (Ubuntu)
Fix Released
Low
Michael Vogt
Nominated for Jaunty by Leonard Michlmayr

Bug Description

Binary package hint: compiz

I use focus follow mouse and not click_to_focus.

When I drag a file from a nautilus window to another window (nautilus or gnome-terminal), the focus stays at the source window of the file even after dropping the file. So the mouse pointer is over a window without focus. That is confusing. I have to move the mouse pointer out of the window and back to the window to give it focus.

I have attached a patch to this bug. If you don't use click-to-focus mode, please try the patch and report your observations.
ppa: https://launchpad.net/~leonard-michlmayr/+archive/ppa

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: nvidia
Package: compiz 1:0.7.7+git20080807-0ubuntu10
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LC_NUMERIC=en_US.UTF-8
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_AT.UTF-8
SourcePackage: compiz
Uname: Linux 2.6.27-4-generic x86_64

Related branches

Revision history for this message
Leonard Michlmayr (leonard-michlmayr) wrote :
Revision history for this message
Michele Mangili (mangilimic) wrote :

Hi Leonard!

I can confirm this issue, although I'm not sure that this is bug belongs to compiz. I suppose that you are using gnome with metacity. And I'm moving this report to metacity package.

Thanks for your support.

Changed in compiz:
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

Changed in metacity:
status: Confirmed → Invalid
Revision history for this message
Leonard Michlmayr (leonard-michlmayr) wrote : Re: [Bug 274407] Re: focus does not follow mouse during drag-and-drop

Hi Michele

Thank you for your reply.

> I can confirm this issue, although I'm not sure that this is bug belongs
> to compiz. I suppose that you are using gnome with metacity. And I'm
> moving this report to metacity package.

I am pretty sure that I am not using metacity. (ps axu | grep -i
metacity) gtk-window-decorator mimics metacity window decorations and
uses metacity themes, though.

I don't know weather this is a compiz issue or a general issue of gnome
drag&drop. I imagine that the window manager does not get/understand the
enter event, when the mouse button is pressed.

Thanks for your sympathies.

Revision history for this message
Michele Mangili (mangilimic) wrote :

:)

I apologize for the inconvenience!!!!

I thought that it was an issue of metacity... I was wrong!

Please, don't bother my previous suggestion! ;)

Thanks for your patience!

Revision history for this message
Leonard Michlmayr (leonard-michlmayr) wrote :

I found that Compiz explicitly ignores EnterNotify events that occur because of an ungrab. Apparently, in drag-drop some app grabs the focus and releases it, when the object is dropped. In this situation X issues an EnterNotify event with the mode NotifyUngrab. If I let compiz not ignore this event, I get the desired behavior. Please test the patch to see if it has any unwanted effects.

description: updated
Changed in compiz:
status: Unknown → Confirmed
description: updated
Revision history for this message
Leonard Michlmayr (leonard-michlmayr) wrote :

I have a patched version in my ppa and the patch is also attached to this bug report. The fix works fine with me (intrepid) and compiles for jaunty. Please test and consider to release the fix with jaunty (e.g. alpha).

Changed in compiz:
status: In Progress → Fix Committed
Revision history for this message
Leonard Michlmayr (leonard-michlmayr) wrote :

Since I am not a MOTU assign to nobody

Changed in compiz:
assignee: leonard-michlmayr-first → nobody
description: updated
Revision history for this message
Leonard Michlmayr (leonard-michlmayr) wrote :

Ok, maybe »Committed« is the wrong word. There is a fix available and we wait for the package maintainer to commit it.

Changed in compiz:
status: Fix Committed → In Progress
Changed in compiz:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the upstream change is an one liner change

Changed in compiz:
assignee: nobody → mvo
importance: Undecided → Low
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for the bugreport and the patch!

I uploaded the 0.8 branch to the compiz PPA that includes this fix, if all goes well I will upload it into the main archive tomorrow.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package compiz - 1:0.7.9+git20090211-0ubuntu1

---------------
compiz (1:0.7.9+git20090211-0ubuntu1) jaunty; urgency=low

  * build from the 0.8 git branch
    - fixes focus problem (LP: #274407)
    - fixes problem with latest libmetacity decoration (LP: #327793)
    - enable new gnomecompat plugin by default
  * debian/patches:
   - updated 013-add-cursor-theme-support.patch
   - updated 018_use_metacity_settings.patch
   - updated 029_default_options
   - updated 035_ignore_workspaces
   - updated 037_fullscreen_stacking_fixes.patch (mostly merged upstream
     just the move plugin changes remain)
   - dropped 027_default_to_gnome_terminal
   - dropped 040_resolve-animation-fade-conflict_from_upstream.patch
   - dropped 047_no_display_compiz_desktop.patch
   - dropped 048_from_git_fix_placement.patch
   - dropped 050-scale-keybinding-toggle.patch
   - dropped 051-new-kde4-plasma-api.patch

 -- Michael Vogt <email address hidden> Tue, 10 Feb 2009 10:39:03 +0100

Changed in compiz:
status: In Progress → Fix Released
Revision history for this message
nicky.7 (nickkkk7) wrote :

I still have this bug in Ubuntu Karmic using compiz 0.8.3

Revision history for this message
Travis Watkins (amaranth) wrote :

I cannot reproduce this with 0.8.3 in karmic. When I drag a file from one nautilus window to another the second window gets focus when the drag ends. What steps are you using to reproduce this?

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

Other bug subscribers

Remote bug watches

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