From a28666ee996ffd1d293751b642275c971e0d0124 Mon Sep 17 00:00:00 2001
From: Victor Kareh <vkareh@redhat.com>
Date: Sat, 1 Jun 2019 21:16:00 -0400
Subject: theme: Fix window state when tiling from maximized

---
 src/ui/theme.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src')

diff --git a/src/ui/theme.c b/src/ui/theme.c
index 423d5c1c..3b11c131 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -5462,9 +5462,11 @@ theme_get_style (MetaTheme     *theme,
       state = META_FRAME_STATE_MAXIMIZED;
       break;
     case META_FRAME_TILED_LEFT:
+    case (META_FRAME_MAXIMIZED | META_FRAME_TILED_LEFT):
       state = META_FRAME_STATE_TILED_LEFT;
       break;
     case META_FRAME_TILED_RIGHT:
+    case (META_FRAME_MAXIMIZED | META_FRAME_TILED_RIGHT):
       state = META_FRAME_STATE_TILED_RIGHT;
       break;
     case META_FRAME_SHADED:
-- 
cgit v1.2.1