Re: Bringing a GtkWindow to the current desktop with libwnck



On 2009/07/02 23:27, Jim George wrote:

I tried to get around this using libwnck. I call
wnck_window_get(GDK_WINDOW_XID(main_window->window)), but the
WnckWindow returned is always NULL. The X window ID "seems" to make
sense (it's a large integer), so what am I doing wrong?

Try this:

WnckScreen *wnck_screen = wnck_screen_get_default();
wnck_screen_force_update(wnck_screen);

... before your wnck_window_get() call.

        -brian



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