]> git.sur5r.net Git - i3/i3/blobdiff - src/floating.c
floating_maybe_reassign_ws: use get_output_from_rect
[i3/i3] / src / floating.c
index 1c310abe7421dcdd254e1cbe71cee39f15eb10df..13b30f162656d544878ead234af51b7199b2cde4 100644 (file)
@@ -413,9 +413,7 @@ void floating_raise_con(Con *con) {
  *
  */
 bool floating_maybe_reassign_ws(Con *con) {
-    Output *output = get_output_containing(
-        con->rect.x + (con->rect.width / 2),
-        con->rect.y + (con->rect.height / 2));
+    Output *output = get_output_from_rect(con->rect);
 
     if (!output) {
         ELOG("No output found at destination coordinates?\n");