Re: [Usability] Re: Error dialogs (among others?) and focus stealing prevention



On Wed, 27 Oct 2004 14:27:26 -0400, Dan Winship <danw novell com> wrote:
> On Wed, 2004-10-27 at 01:28 -0400, Havoc Pennington wrote:

> One thing this wouldn't work for would be a "could not load page" error
> in a web browser. The decision to pop up the error would happen from a
> network I/O handler, far far away from the click or keypress handler
> that resulted in the original HTTP request being made.
> 
> But in this case, calling "gtk_window_set_focus_on_map (w, FALSE)" would
> be wrong. You need to set the focus time of the window to the timestamp
> of that click/keypress event, because if the user is just sitting and
> waiting for the web page to load, then the dialog should get the focus.

Right (and the way to do that is to call
gdk_x11_window_set_user_time()).  I'll have to cover this scenario in
that email to d-d-l...



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