]> git.sur5r.net Git - i3/i3/blobdiff - include/floating.h
Correctly re-assign floating clients to the destination workspace when moving
[i3/i3] / include / floating.h
index edc11a95b77bb04e2170e07a6c6136635646598b..a4f8619ac4e1b38abd52bb4424fdf76aae9491cc 100644 (file)
@@ -3,7 +3,7 @@
  *
  * i3 - an improved dynamic tiling window manager
  *
- * (c) 2009 Michael Stapelberg and contributors
+ * © 2009 Michael Stapelberg and contributors
  *
  * See file LICENSE for license information.
  *
  */
 void toggle_floating_mode(xcb_connection_t *conn, Client *client, bool automatic);
 
+/**
+ * Removes the floating client from its workspace and attaches it to the new workspace.
+ * This is centralized here because it may happen if you move it via keyboard and
+ * if you move it using your mouse.
+ *
+ */
+void floating_assign_to_workspace(Client *client, Workspace *new_workspace);
+
 /**
  * Called whenever the user clicks on a border (not the titlebar!) of a floating window.
  * Determines on which border the user clicked and launches the drag_pointer function