Re: [Nautilus-list] drag window focus hack issues



John Harper <jsh unfactored org> writes:

> Havoc Pennington writes:
> |> This bug can be easily fixed by focusing the window if it doesn't have
> |> a drag data structure associated with it
> |
> |Right, except that GTK wants you to focus the special child of the
> |window, rather than the window itself, and there's no public API to do
> |so.
> 
> gdk_window_focus () doesn't use the focus window either.. is that a bug?

For wm-spec supporting window managers, gdk_window_focus() simply asks
the window manager to focus the window. (So if you call gdk_window_focus() 
in response to WM_TAKE_FOCUS you will get an infinite loop.)

It's probably a bug that it doesn't focus the special child in the 
no-wm-spec case, but it's a bug it won't help us to fix.

Regards,
                                        Owen




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