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.


** Attachment added: "Do not ignore NotifyUngrab enter events"
   
http://launchpadlibrarian.net/21876725/050-Do-not-ignore-MoveUngrab-enter-events.patch

** Description changed:

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

** Tags added: patch

-- 
focus does not follow mouse during drag-and-drop
https://bugs.launchpad.net/bugs/274407
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

-- 
universe-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to