zalckos / GrandTheftFocus

GNOME extension. Removes the 'Window is ready' notification and brings the window into focus instead.
GNU Affero General Public License v3.0
80 stars 1 forks source link

Improve focus transfer behavior #4

Closed dblackCat closed 1 month ago

dblackCat commented 1 year ago

Hi, thanks for this wonderful extension!

After long-term use, the idea of improvement appeared.

  1. Now the window switches to the focus state immediately, regardless of whether the user initiated this action or the application.

A simple example:

I have two applications in the system:

  1. Telegram
  2. Whatsapp

For example, I work in some program. If a message arrives to the above messengers, their clients' windows immediately receive focus.

This is especially annoying during printing.

And the idea is the following. Determine whether the window is triggered by the user (a click event is possible). If the window is opened by the user focus the window.

In other cases, show the old notification - the window is ready, or do nothing.

I'm not sure if this can be implemented through an extension, but this functionality would be very useful.

dblackCat commented 1 year ago

If possible, I will try to make a screencast with the described behavior.

dblackCat commented 1 year ago

I'm sorry I didn't read this https://github.com/zalckos/GrandTheftFocus/issues/1

It solves the problem with Telegram, WhatsApp works without problems.

It turns out there is no problem.

Only if you run steam. It launches the update window first, then the library window. He intercepts the focus, but not critically.

harpreetstealth commented 1 year ago

The issue is with Skype as well. I use skype on different workspace, as soon as there is a message on skype, Workspace is swicthed automatically.