]> git.sur5r.net Git - i3/i3/blobdiff - src/floating.c
Merge pull request #3184 from orestisf1993/issue-1341
[i3/i3] / src / floating.c
index 13b30f162656d544878ead234af51b7199b2cde4..fc68df8e6b587482ab5043751a56bc711c23db85 100644 (file)
@@ -846,12 +846,12 @@ drag_result_t drag_pointer(Con *con, const xcb_button_press_event_t *event, xcb_
  * outputs.
  *
  */
-void floating_reposition(Con *con, Rect newrect) {
+bool floating_reposition(Con *con, Rect newrect) {
     /* Sanity check: Are the new coordinates on any output? If not, we
      * ignore that request. */
     if (!output_containing_rect(newrect)) {
         ELOG("No output found at destination coordinates. Not repositioning.\n");
-        return;
+        return false;
     }
 
     con->rect = newrect;
@@ -863,6 +863,7 @@ void floating_reposition(Con *con, Rect newrect) {
         con->scratchpad_state = SCRATCHPAD_CHANGED;
 
     tree_render();
+    return true;
 }
 
 /*