diff options
author | Brian Ashworth <[email protected]> | 2019-03-06 00:33:10 -0500 |
---|---|---|
committer | emersion <[email protected]> | 2019-03-06 10:05:00 +0100 |
commit | 19df2e590602abe0b5e1b53bc11debdb37be3fbe (patch) | |
tree | 3dc7057488cec9bbdfc9a54e619a0ccc396d6973 /sway/sway-ipc.7.scd | |
parent | a6711740bcd311e1ee551c83a5dfc46d9344d17e (diff) |
ipc: change {,deco_}rect to match i3
This fixes the `deco_rect` and `rect` properties in the IPC responses
to match i3's behavior.
`deco_rect` should be relative to the parent node, not the current
node. This also takes tabbed and stacked decorations into account and
will calculate `deco_rect` for all containers since tabbed and stacked
child containers will have decorations.
`rect` should exclude the window decorations.
Diffstat (limited to 'sway/sway-ipc.7.scd')
-rw-r--r-- | sway/sway-ipc.7.scd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/sway-ipc.7.scd b/sway/sway-ipc.7.scd index d598a54f..6b400453 100644 --- a/sway/sway-ipc.7.scd +++ b/sway/sway-ipc.7.scd @@ -314,14 +314,15 @@ node and will have the following properties: and other special nodes such as the scratchpad |- rect : object -: The absolute geometry of the node +: The absolute geometry of the node. The window decorations are excluded from + this, but borders are included. |- window_rect : object : The geometry of the contents inside the node. The window decorations are excluded from this calculation, but borders are included. |- deco_rect : object -: The geometry of the decorations inside the node +: The geometry of the decorations for the node relative to the parent node |- geometry : object : The natural geometry of the contents if it were to size itself |