gkrellm start state (according to app list and desk changer)



Hy

I noticed that when starting gkrellm with 'task list ignore' and 'desk changer ignore' state, these are ignored -- :-) is it clear ... --
Clearly the toggles in the configuration panel do not achieves their roles.
Here is a patch for fixing it.

Any comments on the way I made it ?
Is there a better way to achieve this feature ?
Is it a bug of metacity ?

P.S.: I test this patch since gkrellm 2.1.4 (garnome 0.19.3) and it runs pretty well (do what it is intended to do)
diff -u tmp/gkrellm-2.1.7a/src/main.c work/gkrellm-2.1.7a/src/main.c
--- tmp/gkrellm-2.1.7a/src/main.c	Tue Jan 21 17:11:07 2003
+++ work/gkrellm-2.1.7a/src/main.c	Sat Feb 22 22:40:43 2003
@@ -2037,14 +2037,26 @@
 	if (_GK.sticky_state)
 		gtk_window_stick(GTK_WINDOW(top_window));
 	gkrellm_winop_options(argc, argv);
+
+        /* This is a ugly trick to avoid the flash in the pager/tasklist */
+        /* If you know a better way to do it... please tell me */
+        /* Remi Cohen-Scali <rcoscali rcsnet net> */
+	_gtk_window_reposition(GTK_WINDOW(gtree.window), 65000, 65000);
+        
 	gtk_widget_show(gtree.window);
 
+#if !defined(WIN32)
+	gkrellm_winop_state_skip_taskbar(_GK.state_skip_taskbar); 
+	gkrellm_winop_state_skip_pager(_GK.state_skip_pager); 
+	gkrellm_winop_state_above(_GK.state_above); 
+	gkrellm_winop_state_below(_GK.state_below); 
+#endif
+
 	if (geometry)		/* Command line placement overrides */
 		gkrellm_winop_place_gkrellm(geometry);
 	else if (_GK.save_position)
 		set_or_save_position(0);
 
-
 	start_timer(_GK.update_HZ);
 	setup_signal_handler();
 	gtk_main ();
@@ -2052,7 +2064,7 @@
 	gkrellm_exit(0);
 
 #if defined(_WINDOWS)
-    g_strfreev(argv);
+        g_strfreev(argv);
 #endif
 
 	return 0;


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