Author: olivier
Date: 2006-12-07 21:14:14 +0000 (Thu, 07 Dec 2006)
New Revision: 24057

Modified:
   xfce4-panel/trunk/panel/panel-dialogs.c
Log:
Avoid type UTILITY for panel dialogs, this is not suitable for that kind of 
dialogs and it's causing more bad than good with most window managers 
(NET_WM_WINDOW_TYPE_UTILITY indicates a small persistent utility window, such 
as a palette or toolbox)

Modified: xfce4-panel/trunk/panel/panel-dialogs.c
===================================================================
--- xfce4-panel/trunk/panel/panel-dialogs.c     2006-12-07 20:45:00 UTC (rev 
24056)
+++ xfce4-panel/trunk/panel/panel-dialogs.c     2006-12-07 21:14:14 UTC (rev 
24057)
@@ -653,8 +653,9 @@
     g_ptr_array_foreach (panels, (GFunc)item_dialog_opened, NULL);
 
     gtk_window_stick(GTK_WINDOW (dlg));
+    /* Note sure why this is set to type UTILITY, but it's causing more bad 
than good.
     gtk_window_set_type_hint (GTK_WINDOW (dlg), GDK_WINDOW_TYPE_HINT_UTILITY);
-
+     */
     xfce_gtk_window_center_on_monitor_with_pointer (GTK_WINDOW (dlg));
     gtk_widget_show (dlg);
 
@@ -1653,9 +1654,10 @@
                       G_CALLBACK (panel_dialog_response), pmd);
     
     gtk_window_stick(GTK_WINDOW (pmd->dlg));
+    /* Note sure why this is set to type UTILITY, but it's causing more bad 
than good.
     gtk_window_set_type_hint (GTK_WINDOW (pmd->dlg), 
                               GDK_WINDOW_TYPE_HINT_UTILITY);
-
+     */
     xfce_gtk_window_center_on_monitor_with_pointer (GTK_WINDOW (pmd->dlg));
     gtk_widget_show (pmd->dlg);
 

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to