aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-03-06 12:02:19 -0500
committerDrew DeVault <sir@cmpwn.com>2019-03-06 10:49:45 -0700
commit0df76ed96afa75ff8dd8ab6cf7748026e1caf5e7 (patch)
treec90bd7a0829768222ce589ae2d0264a961ecde52
parent8ada2daba5f58fe2bba77127bedd4e9af7c8844f (diff)
downloadsway-0df76ed96afa75ff8dd8ab6cf7748026e1caf5e7.zip
sway-0df76ed96afa75ff8dd8ab6cf7748026e1caf5e7.tar.gz
sway-0df76ed96afa75ff8dd8ab6cf7748026e1caf5e7.tar.bz2
ipc: fix fullscreen deco_rect
This fixes the deco_rect reported by the ipc for fullscreen containers to be all zeroes. Children of the fullscreen container should still have their decorations reported correctly
-rw-r--r--sway/ipc-json.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index bcc525a..20dcafb 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -352,8 +352,9 @@ static void ipc_json_describe_workspace(struct sway_workspace *workspace,
static void get_deco_rect(struct sway_container *c, struct wlr_box *deco_rect) {
enum sway_container_layout parent_layout = container_parent_layout(c);
- if (parent_layout != L_TABBED && parent_layout != L_STACKED &&
- c->current.border != B_NORMAL) {
+ if ((parent_layout != L_TABBED && parent_layout != L_STACKED &&
+ c->current.border != B_NORMAL) ||
+ c->fullscreen_mode != FULLSCREEN_NONE) {
deco_rect->x = deco_rect->y = deco_rect->width = deco_rect->height = 0;
return;
}