GNOME and the way forward
Posted Aug 18, 2005 7:02 UTC (Thu) by jamesh
In reply to: GNOME and the way forward
Parent article: GNOME and the way forward
The two constraints people usually want honoured for new window behaviour are:
- If a user starts an application, they want to use it so it should be focused.
- If a user is doing something and a window pops up, they probably don't want it to get focus and interrupt their work (e.g. if they are entering a password).
The rules the focus stealing prevention code uses are essentially the following:
- If you don't interact with any applications in the time between the request to open a new window and the window actually showing, then focus the new window.
- If you do interact with an application in that time, then the new window should not get focus.
The idea here being to do the right thing without a preference. Unfortunately, some applications need modification to function correctly in this system (e.g. specifying where in the event stream a particular window was requested, or telling the window manager not to focus a new window that is not the result of a user action).
to post comments)