]> git.sur5r.net Git - i3/i3/blobdiff - include/floating.h
Merge branch 'master' into next
[i3/i3] / include / floating.h
index e97029f5bb4e0e1a4198ac3db18e93b5122679cc..43137c9c7ed47ca174b850b1f54296760b2050b2 100644 (file)
@@ -137,4 +137,20 @@ void drag_pointer(Con *con, const xcb_button_press_event_t *event,
                   xcb_window_t confine_to, border_t border, callback_t callback,
                   const void *extra);
 
+/**
+ * Repositions the CT_FLOATING_CON to have the coordinates specified by
+ * newrect, but only if the coordinates are not out-of-bounds. Also reassigns
+ * the floating con to a different workspace if this move was across different
+ * outputs.
+ *
+ */
+void floating_reposition(Con *con, Rect newrect);
+
+/**
+ * Fixes the coordinates of the floating window whenever the window gets
+ * reassigned to a different output (or when the output’s rect changes).
+ *
+ */
+void floating_fix_coordinates(Con *con, Rect *old_rect, Rect *new_rect);
+
 #endif