git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit72aaef25e18e728103e21741f4434eb2c9bd1a54
parentb2227eac81
authorIsaac Freund <[email protected]>
date2020-04-18 15:36
Arrange on sending view to output

 src/command/send_to_output.zig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/command/send_to_output.zig b/src/command/send_to_output.zig
index 55787a5..09ce7ad 100644
--- a/src/command/send_to_output.zig
+++ b/src/command/send_to_output.zig
@@ -35,7 +35,8 @@ pub fn sendToOutput(seat: *Seat, arg: Arg) void {
         target_output.views.push(view_node);
         view.output = target_output;
 
-        // Focus whatever's next in the focus stack
+        // Handle the change and focus whatever's next in the focus stack
+        root.arrange();
         seat.focus(null);
     }
 }