SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.73k stars 3.19k forks source link

WindowManager: Focus windows on hover #8005

Open swsrkty opened 3 years ago

swsrkty commented 3 years ago

It would be nice if we can switch focus to other window on hover( the window should get activated when the mouse pointer enters it) as commonly done in other operating systems.

vkoskiv commented 3 years ago

If we want to look to other systems for inspiration, macOS focuses only scroll events on hover, so you can scroll a background window by just hovering the cursor over it while scrolling. Not sure about activating windows on hover though, can you clarify what you mean by that? Does it mean it would bring the window forward or some other action?

swsrkty commented 3 years ago

Hii @vkoskiv, the window should just get focused (activated) on hover (as done in Ubuntu). But the window shouldn't come come to the front, only bring it to the front when clicked on a window or on an Alt + Tab (as it already does).

Discussion at Discord: https://discord.com/channels/830522505605283862/830522505605283866/850471005984915477