mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-26 21:58:08 +01:00
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
This commit is contained in:
parent
8ada2daba5
commit
0df76ed96a
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue