metacity r3971 - in trunk: . src/core



Author: tthurman
Date: Wed Oct 22 03:21:23 2008
New Revision: 3971
URL: http://svn.gnome.org/viewvc/metacity?rev=3971&view=rev

Log:
2008-10-22  Thomas Thurman  <tthurman gnome org>

        * src/core/window.c (meta_window_set_demands_attention): minimised
          windows are necessarily obscured.



Modified:
   trunk/ChangeLog
   trunk/src/core/window.c

Modified: trunk/src/core/window.c
==============================================================================
--- trunk/src/core/window.c	(original)
+++ trunk/src/core/window.c	Wed Oct 22 03:21:23 2008
@@ -8062,6 +8062,10 @@
       /* windows on other workspaces are necessarily obscured */
       obscured = TRUE;
     }
+  else if (window->minimized)
+    {
+      obscured = TRUE;
+    }
   else
     {
       meta_window_get_outer_rect (window, &candidate_rect);
@@ -8086,21 +8090,26 @@
                 }
             }
         }
-      /* If the window's in full view, there's no point setting the flag. */
-  
+    }
+
+  if (obscured)
+    {
       meta_topic (META_DEBUG_WINDOW_OPS,
-          "Not marking %s as needing attention because it's in full view\n",
-          window->desc);
-      return;
+                  "Marking %s as needing attention\n",
+                  window->desc);
+
+      window->wm_state_demands_attention = TRUE;
+      set_net_wm_state (window);
     }
-    
-  /* Otherwise, go ahead and set the flag. */
-  
-  meta_topic (META_DEBUG_WINDOW_OPS,
-      "Marking %s as needing attention\n", window->desc);
+  else
+    {
+      /* If the window's in full view, there's no point setting the flag. */
 
-  window->wm_state_demands_attention = TRUE;
-  set_net_wm_state (window);
+      meta_topic (META_DEBUG_WINDOW_OPS,
+                 "Not marking %s as needing attention because "
+                 "it's in full view\n",
+                 window->desc);
+    }
 }
 
 void



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