Open GHNewbiee opened 7 months ago
Hiya @GHNewbiee. What would be the feature here? As far as I understand it, I think it would be:
Is that correct?
@mattkae Thanks for your response. Just to be more precise:
To add in 2) Window requiring "attention" should not lock the focus on itself. That's why it has to behave in a different manner if possible.
Understood now! Right now, the behavior is that any window that gets brought up gains focus, but we could just as easily provide an option in the config to disable that behavior.
@mattkae
What about the behavior of a window requiring attention, will it
inotify
or something and say "Window X on workspace 3 wants your attention"inotify
worths the pain / additional work then it's ok. In addition, the project will provide a unique feature!Ah and is this requested by the client? Is this an X only thing or is there a Wayland protocol that requests this behavior?
I get this while trying to open Github Desktop. An "Unlock Login Keyring" window appears which locks the operation. I have to unlock by entering the password first before continue working, although I opened it last .
I log in by means of fingerprint.
I still use X. I do not know the process of that .
See photo attached.
To summerize:
A window may need:
The focus state of a normal window may be:
The focus state of a window that requires "attention" may be:
Is there other option ?
Do X and Wayland protocols distinguish normal windows from windows requiring "attention"?
If not, could a kind of existing flag/option to be used instead of?
That is a very good question. I know that X11 had an "urgent" hint for this use case (see: https://notes.secretsauce.net/notes/2014/03/19_x11-urgency-hint-and-notifications.html). I am tracing the Wayland form of this now. It looks like the following happened:
Mir doesn't support that protocol unfortunately. However, this protocol in theory passes focus from one surface to another (although, it says nothing about the urgency of the newly focused surface, but it is implied that it is "very" urgent)
FYI: https://github.com/canonical/mir/pull/3639 :smile:
Does Miracle-WM provide prevention against stealing of a window focus? Tia