BORDER_BOTTOM = (1 << 3)} border_t;
/**
- * Enters floating mode for the given client. Correctly takes care of the
- * position/size (separately stored for tiling/floating mode) and
- * repositions/resizes/redecorates the client.
+ * Enables floating mode for the given container by detaching it from its
+ * parent, creating a new container around it and storing this container in the
+ * floating_windows list of the workspace.
+ *
+ */
+void floating_enable(Con *con, bool automatic);
+
+/**
+ * Disables floating mode for the given container by re-attaching the container
+ * to its old parent.
+ *
+ */
+void floating_disable(Con *con, bool automatic);
+
+/**
+ * Calls floating_enable() for tiling containers and floating_disable() for
+ * floating containers.
*
* If the automatic flag is set to true, this was an automatic update by a
* change of the window class from the application which can be overwritten by
*/
void toggle_floating_mode(Con *con, bool automatic);
+/**
+ * Raises the given container in the list of floating containers
+ *
+ */
+void floating_raise_con(Con *con);
+
+/**
+ * Checks if con’s coordinates are within its workspace and re-assigns it to
+ * the actual workspace if not.
+ *
+ */
+bool floating_maybe_reassign_ws(Con *con);
+
#if 0
/**
* Removes the floating client from its workspace and attaches it to the new
*
*/
void floating_drag_window(Con *con, xcb_button_press_event_t *event);
-#if 0
/**
* Called when the user clicked on a floating window while holding the
* Calls the drag_pointer function with the resize_window callback
*
*/
-void floating_resize_window(xcb_connection_t *conn, Client *client,
- bool proportional, xcb_button_press_event_t *event);
+void floating_resize_window(Con *con, bool proportional, xcb_button_press_event_t *event);
+#if 0
/**
* Changes focus in the given direction for floating clients.
*