elementary / terminal

Terminal emulator designed for elementary OS
https://elementary.io
GNU Lesser General Public License v3.0
413 stars 97 forks source link

Add the Mac OS Focus Follows Mouse #706

Open BAProductions opened 1 year ago

BAProductions commented 1 year ago

Problem

None

Proposal

This feature allow the terminal window to follow the user mouse when another app is in focus like the Mac OS terminal allow to do.

Prior Art (Optional)

None

jeremypw commented 1 year ago

You can activate something similar by modifying the setting org.gnome.desktop.wm.preferences.focus-mode using dconf-editor or with a terminal command (e.g. gsettings set org.gnome.desktop.wm.preferences focus-mode "mouse").

The window focus mode indicates how windows are activated. It has three possible values; “click” means windows must be clicked in order to focus them, “sloppy” means windows are focused when the mouse enters the window, and “mouse” means windows are focused when the mouse enters the window and unfocused when the mouse leaves the window.

This could easily be exposed in the Settings UI I guess. There is no easy way of limiting this behaviour to the terminal that I am aware of.