xftaskbar4 doesn't listen to removal of _NET_WM_STATE_SKIP_TASKBAR?

Olivier Fourdan fourdan at xfce.org
Thu Oct 28 08:06:06 CEST 2004


Hi Brian,

If you move the window, the taskbar is refreshed. xprop shows the
property is properly added/removed so it's not a problem with the window
manager.

So it's a problem with the netk-pager (ie wnck pager since it's the same
code base) - You should check that code, it's probably missing a refresh
of the widget somewhere when the property is changed.

Cheers,
Olivier.

On Wed, 2004-10-27 at 22:01 -0700, Brian J. Tarricone wrote:
> hmm, i'm writing that systray icon for xfmedia that jasper suggested, 
> and i noticed that if i use gtk_window_set_skip_taskbar_hint(), passing 
> it TRUE, the window disappears from the taskbar, as it should.  but if i 
> later call it again and pass it FALSE, the taskbar doesn't show a button 
> for the window again.  i've checked with xprop, and the property is 
> indeed being removed.
> 
> i've attached a quick testcase that illustrates the problem.  any 
> ideas?  am i doing something wrong?
> 
>     -brian
> plain text document attachment (tststh.c)
> /* compile with:
>  * gcc -o tststh tststh.c `pkg-config gtk+-2.0 --cflags --libs`
>  */
> 
> #include <gtk/gtk.h>
> 
> static void
> btn_toggle_cb(GtkToggleButton *tb, GtkWindow *win)
> {
> 	gtk_window_set_skip_taskbar_hint(win, gtk_toggle_button_get_active(tb));
> }
> 
> int
> main(int argc, char **argv)
> {
> 	GtkWidget *win, *btn;
> 
> 	gtk_init(&argc, &argv);
> 
> 	win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
> 	gtk_window_set_default_size(GTK_WINDOW(win), 50, 50);
> 	gtk_container_set_border_width(GTK_CONTAINER(win), 12);
> 	g_signal_connect(G_OBJECT(win), "delete-event",
> 			G_CALLBACK(gtk_main_quit), NULL);
> 
> 	btn = gtk_toggle_button_new_with_label("Toggle hint");
> 	gtk_widget_show(btn);
> 	gtk_container_add(GTK_CONTAINER(win), btn);
> 	g_signal_connect(G_OBJECT(btn), "toggled",
> 			G_CALLBACK(btn_toggle_cb), win);
> 
> 	gtk_widget_show(win);
> 
> 	gtk_main();
> 
> 	return 0;
> }
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev




More information about the Xfce4-dev mailing list