How to raise / focus a window?



I've got an app with several windows and one central "master" window which controls hiding / showing of the others. Unfortunately, I can't seem to raise focus for a window. I'm doing the following:

   if (GTK_IS_WIDGET(s_obj->perl_buf->window)) {
       gtk_widget_set_uposition(GTK_WIDGET(s_obj->perl_buf->window),
                           s_obj->perl_buf->x,
                           s_obj->perl_buf->y);
       gtk_widget_show(GTK_WIDGET(s_obj->perl_buf->window));
       gtk_window_activate_focus(s_obj->perl_buf->window);

But it doesn't seem to work. I've also changed my WM from "focus follows mouse" to "click to focus" and neither works. I'm running Slackware 9 and KDE.
Anyone have an idea?

Thanks,

DT

--
Technical Director - Virginia Center for Computer Music
http://www.virginia.edu/music/vccm.html





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