unity-design team mailing list archive
-
unity-design team
-
Mailing list archive
-
Message #02988
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greg K Nicholson wrote on 29/05/10 02:05:
>
>> That is precisely what it does, and has done for years. But it will
>> always be guessing. If you're watching a video and it mentions an
>> unfamiliar word, and you launch the Dictionary to look it up, and it
>> takes two seconds to launch, you want it to take focus. But if you
>> launch OpenOffice.org and it takes 40 seconds to launch, probably you
>> don't want it to suddenly cover the video you'll be watching 40
>> seconds later. So when should the window manager switch from assuming
>> you want a new window focused, to assuming you don't?
>
> When you deliberately focus another window.
That's assuming the question. Whether you "deliberately focus another
window" is what the window manager is trying to guess.
>> After five seconds? Ten? Twenty?
>
> It shouldn't be timed.
>
> I suggest that if you haven't had time to focus another window (i.e.
> if you haven't started doing something else), focus the new window. If
> you've focused another window, the new window should open in the
> background.
So how do you define "started doing something else"?
>> And how can the window manager, by itself, tell which was the
>> action that resulted in the window eventually opening?
>
> The window manager doesn't need to know what launched the window. The
> focus state of the new window should only be based on what's focused
> when the new window opens. The launching app can then affect the new
> window's focus indirectly by throwing focus to «nothing». If «nothing»
> remains focused by the time the new window opens, focus the new
> window. If something is focused when the new window opens, it keeps
> focus.
In the OpenOffice.org case, that would mean the previously focused
window would remain focused for about 30 seconds after you launched
OpenOffice.org, *then* become unfocused as soon as OO.o became able to
do anything.
- --
Matthew Paul Thomas
http://mpt.net.nz/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkwfHBEACgkQ6PUxNfU6ecrsOgCfY/KkukOzQpu+HE9Ij5wj1ZzL
rEAAoNKCXDqmkeoVT4mPz48IGKKWRkGH
=lUOy
-----END PGP SIGNATURE-----
Follow ups
References
-
Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Sense Hofstede, 2010-05-24
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Conscious User, 2010-05-24
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Mark Shuttleworth, 2010-05-24
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Alex Schoof, 2010-05-24
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Tyler Brainerd, 2010-05-24
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Mark Shuttleworth, 2010-05-25
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Greg K Nicholson, 2010-05-26
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Frederik Nnaji, 2010-05-27
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Conscious User, 2010-05-27
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Kristoffer Lundén, 2010-05-27
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Matthew Paul Thomas, 2010-05-28
-
Re: Papercut or not? Bug #495403 in One Hundred Paper Cuts: “Do not raise windows or dialogs without user input”
From: Greg K Nicholson, 2010-05-29