linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.55k stars 740 forks source link

Focus does not follow mouse after copying text out of Firefox #10677

Open crowding opened 2 years ago

crowding commented 2 years ago
 * Linux Mint 20.2 Cinnamon 64 bit
 * Cinnamon 5.0.7
   - Not on daily build
 * GeForce GT 330M using nvidia-340 drivers
 * Firefox 96.0+linuxmint

I am seeing a failure of focus-follows-mouse when copying some text from Firefox to my web browser. This happens both for strict and sloppy focus modes

Open Firefox and another app like Emacs. Arrange the windows with no gap between them. Select a piece of text in Firefox, then copy to the clipboard pressing Ctrl-C. When I move

  1. Enable Focus behavior of "Mouse" or "Sloppy
  2. Open Firefox and another app such as Emacs.
  3. Arrange the windows with no gap between them.
  4. Select a piece of text in Firefox.
  5. Press Ctrl-C to copy the text,
  6. Move the mouse pointer to the other app. Expected behaviour: Keyboard focus should follow mouse to the new window. Observed behavior: Focus does not move. If I move the cursor back to firefox and to emacs again the focus will then move.

I've put a screen recording in the following Gist: https://gist.github.com/crowding/21eb24a6bdebd82e36fad9043d49d5ec

As demonstrated, this behavior is intermittent, does not occur 100% of the time but seems to be more likely to occur if I move the mouse quickly.

DirkHaar commented 2 years ago

Is that scratch window started by a terminal? When I use mouse or sloppy combined with focus mode "intelligent" (see its bubble help) I can not reproduce this (and not in other modes).