summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c34
1 files changed, 14 insertions, 20 deletions
diff --git a/src/window.c b/src/window.c
index 7955102e..d11f7b3e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2018,17 +2018,14 @@ meta_window_show (MetaWindow *window)
}
}
- if (did_show)
- {
- set_net_wm_state (window);
+ set_net_wm_state (window);
- if (window->struts)
- {
- meta_topic (META_DEBUG_WORKAREA,
- "Mapped window %s with struts, so invalidating work areas\n",
- window->desc);
- invalidate_work_areas (window);
- }
+ if (did_show && window->struts)
+ {
+ meta_topic (META_DEBUG_WORKAREA,
+ "Mapped window %s with struts, so invalidating work areas\n",
+ window->desc);
+ invalidate_work_areas (window);
}
}
@@ -2071,17 +2068,14 @@ meta_window_hide (MetaWindow *window)
set_wm_state (window, IconicState);
}
- if (did_hide)
- {
- set_net_wm_state (window);
+ set_net_wm_state (window);
- if (window->struts)
- {
- meta_topic (META_DEBUG_WORKAREA,
- "Unmapped window %s with struts, so invalidating work areas\n",
- window->desc);
- invalidate_work_areas (window);
- }
+ if (did_hide && window->struts)
+ {
+ meta_topic (META_DEBUG_WORKAREA,
+ "Unmapped window %s with struts, so invalidating work areas\n",
+ window->desc);
+ invalidate_work_areas (window);
}
}