diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-09-29 21:46:33 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-09-29 21:46:33 +0300 |
commit | 20932206907d55afaf121bb68dba1956cbcacc47 (patch) | |
tree | bb1599f028264705090a93b73f632ed0ba24fd48 /src | |
parent | af7a50198b28e29bbf568c1a8958fd9b0c9a3860 (diff) | |
download | metacity-20932206907d55afaf121bb68dba1956cbcacc47.tar.gz |
window: fix build warnings
this statement may fall through [-Wimplicit-fallthrough=]
Diffstat (limited to 'src')
-rw-r--r-- | src/core/window.c | 16 |
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; |