metacity r3971 - in trunk: . src/core
- From: tthurman svn gnome org
- To: svn-commits-list gnome org
- Subject: metacity r3971 - in trunk: . src/core
- Date: Wed, 22 Oct 2008 03:21:24 +0000 (UTC)
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]