diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-06 00:33:10 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-11 10:56:20 -0400 |
commit | 7a44b542b8ec8c1c03f7db81eb96c20105c83ffb (patch) | |
tree | 9249e54307ed11ff9461d4e4f22bcf7886bc078b /sway/sway-ipc.7.scd | |
parent | Set DISPLAY after initializing Xwayland (diff) | |
download | sway-7a44b542b8ec8c1c03f7db81eb96c20105c83ffb.tar.gz sway-7a44b542b8ec8c1c03f7db81eb96c20105c83ffb.tar.zst sway-7a44b542b8ec8c1c03f7db81eb96c20105c83ffb.zip |
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: | |||
314 | and other special nodes such as the scratchpad | 314 | and other special nodes such as the scratchpad |
315 | |- rect | 315 | |- rect |
316 | : object | 316 | : object |
317 | : The absolute geometry of the node | 317 | : The absolute geometry of the node. The window decorations are excluded from |
318 | this, but borders are included. | ||
318 | |- window_rect | 319 | |- window_rect |
319 | : object | 320 | : object |
320 | : The geometry of the contents inside the node. The window decorations are | 321 | : The geometry of the contents inside the node. The window decorations are |
321 | excluded from this calculation, but borders are included. | 322 | excluded from this calculation, but borders are included. |
322 | |- deco_rect | 323 | |- deco_rect |
323 | : object | 324 | : object |
324 | : The geometry of the decorations inside the node | 325 | : The geometry of the decorations for the node relative to the parent node |
325 | |- geometry | 326 | |- geometry |
326 | : object | 327 | : object |
327 | : The natural geometry of the contents if it were to size itself | 328 | : The natural geometry of the contents if it were to size itself |