Comment 19 for bug 67476

Revision history for this message
Grey Nicholson (greytheearthling) wrote : Re: [Bug 67476] Re: Dialogs of background applications pop up in the foreground

Octavio:
> In this point you are assuming that the user will only launch
> applications from an application related to the window manager.

Nope. gnome-panel is neither compiz nor metacity. It doesn't matter
which app does the launching.

> Otherwise, there is a need for a function call for a third
> party to remove the focus from any window.

No. No-one ever removes focus. The launching app relinquishes focus from itself.

> I think it would be a security risk, as an application might
> continuously take away the focus from any application.

It could only take focus away from itself.

> Your point would only be useful as an optimization for a
> particular environment, but what if you launch from the
> terminal or from a third party launcher?

The terminal or third-party launcher would (might) relinquish focus to
the new window.

> The other arguments of yours rely mostly on that.
>
> The only universal solution I have come up with is a
> non-stealing notification window (semi-transparent if
> using a composite manager) saying "Your window
> is ready, Sir."

gnome-shell implements exactly that (minus the assumption that the
user is male).

> The new window should have the URGENT hint set (as it is now)
> but it must be made more apparent and attention-grabbing.
>
> And an option to unset the URGENT hint from a Window without
> necesarily having to bring it up front.

With focus-follows-mouse on, pointing does this. Any additional
mechanism for removing the hint would be overkill, in my opinion.

> Just an idea.

avdd:
> No, I think the model Greg is proposing is essentially this: the
> current focus is a privilege that at most one window may have.

Yeah, fair enough.

> To
> have it, it must be explicitly granted by something else, such as
> the panel launcher.

Not quite. To lose focus, one must explicitly relinquish it—either to
«nothing» or to another window.

To gain focus, either another window throws focus to you; or your
window opens while nothing has focus. (This second case is the only
way a window can get focus without being explicitly given it by
another window.)

> Having this "non-stealing" and "focus stealing prevention" stuff
> is doing it backwards.

It is.

--
Greg