summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2017-09-29 21:46:33 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2017-09-29 21:46:33 +0300
commit20932206907d55afaf121bb68dba1956cbcacc47 (patch)
treebb1599f028264705090a93b73f632ed0ba24fd48
parentaf7a50198b28e29bbf568c1a8958fd9b0c9a3860 (diff)
downloadmetacity-20932206907d55afaf121bb68dba1956cbcacc47.tar.gz
window: fix build warnings
this statement may fall through [-Wimplicit-fallthrough=]
-rw-r--r--src/core/window.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 7a54b7fe..3c5b2c2b 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -6393,7 +6393,10 @@ meta_window_update_struts (MetaWindow *window)
{
case META_SIDE_RIGHT:
temp->rect.x = BOX_RIGHT(temp->rect) - thickness;
- /* Intentionally fall through without breaking */
+ temp->rect.width = thickness;
+ temp->rect.y = strut_begin;
+ temp->rect.height = strut_end - strut_begin + 1;
+ break;
case META_SIDE_LEFT:
temp->rect.width = thickness;
temp->rect.y = strut_begin;
@@ -6401,7 +6404,10 @@ meta_window_update_struts (MetaWindow *window)
break;
case META_SIDE_BOTTOM:
temp->rect.y = BOX_BOTTOM(temp->rect) - thickness;
- /* Intentionally fall through without breaking */
+ temp->rect.height = thickness;
+ temp->rect.x = strut_begin;
+ temp->rect.width = strut_end - strut_begin + 1;
+ break;
case META_SIDE_TOP:
temp->rect.height = thickness;
temp->rect.x = strut_begin;
@@ -6456,13 +6462,15 @@ meta_window_update_struts (MetaWindow *window)
{
case META_SIDE_RIGHT:
temp->rect.x = BOX_RIGHT(temp->rect) - thickness;
- /* Intentionally fall through without breaking */
+ temp->rect.width = thickness;
+ break;
case META_SIDE_LEFT:
temp->rect.width = thickness;
break;
case META_SIDE_BOTTOM:
temp->rect.y = BOX_BOTTOM(temp->rect) - thickness;
- /* Intentionally fall through without breaking */
+ temp->rect.height = thickness;
+ break;
case META_SIDE_TOP:
temp->rect.height = thickness;
break;