xftaskbar4 doesn't listen to removal of _NET_WM_STATE_SKIP_TASKBAR?

Juha Kautto kautto.juha at kolumbus.fi
Thu Oct 28 07:39:07 CEST 2004


Yes, noticed the same...workaround is to toggle _NET_WM_STATE_SKIP_PAGER 
hint. This makes windows visible/invisible in the taskbar.

/Juha

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
>
>------------------------------------------------------------------------
>
>/* 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