Re: help needed: window focus bugs



Sorry, one more quick clarification...

On Wed, 11 Aug 2004, Elijah Newren wrote:

<snip>
> > Apps may also explicitly set the timestamp to 0, which means to never
> > focus that new window. e.g. an IM client might use this.

<snip>
> should work.  (Well...unless the user is using chatting in one IM window
> and gets an IM from someone else, opening a new window.  So maybe there
> is a reason for the IM client to set the timestamp to 0 after all.  :-)

Requesting that a window not have focus for gtk+ >= 2.6 should be done
via calling

  gtk_window_set_focus_on_map (some_gtk_window, FALSE);

rather than actually specifying a timestamp of 0 (there's a
gdk_window_set_focus_on_map function too).  For gtk+ 2.4.x (with x>=1),
manually setting the timestamp to 0 will be necessary.


Elijah



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