Re: Setting focus to newly shown window



On Wed, 20 Jan 2016 09:55:29 +0200
Marius Gedminas <marius gedmin as> wrote:

If the window was already visible, and you just want to bring it to
front, try info_window.present().  The window manager (i.e. gnome-shell)
may feel free to ignore your request, on the grounds of focus stealing
prevention -- in that case you'll get a notification about the window
wanting attention.

So, basically, you have to configure the window manager to do what you
want (or allow it). Window managers can block focus stealing (or not),
and determine if a new window will receive the focus or not. Much of this
depends on the taste or necessities of the user.

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]