diff options
author | 2015-11-28 23:48:22 +0100 | |
---|---|---|
committer | 2015-11-29 13:00:10 +0100 | |
commit | badfb4bb43f18694a584f47e81ef4f2206b442bb (patch) | |
tree | 98d07b0e80a9db1283f9a2447b91426c33bbad37 /common | |
parent | Merge pull request #272 from mikkeloscar/output-cmd-warnings (diff) | |
download | sway-badfb4bb43f18694a584f47e81ef4f2206b442bb.tar.gz sway-badfb4bb43f18694a584f47e81ef4f2206b442bb.tar.zst sway-badfb4bb43f18694a584f47e81ef4f2206b442bb.zip |
cmd_floating: Don't add non-float as sibling to float.
When turning a float to a non-float, `get_focused_container` might
return another floating view, causing the active view to be inserted
into the floating list on its workspace instead of the normal child list
which it should. (Since it has `is_floating` as false the resulting
discrepency triggered other bad behaviour eventually leading sway to
crash.)
This patch fixes that by simply checking floating status before making
it a sibling.
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions