4 * i3 - an improved dynamic tiling window manager
6 * (c) 2009 Michael Stapelberg and contributors
8 * See file LICENSE for license information.
15 * Enters floating mode for the given client.
16 * Correctly takes care of the position/size (separately stored for tiling/floating mode)
17 * and repositions/resizes/redecorates the client.
19 * If the automatic flag is set to true, this was an automatic update by a change of the
20 * window class from the application which can be overwritten by the user.
23 void toggle_floating_mode(xcb_connection_t *conn, Client *client, bool automatic);
26 * Called whenever the user clicks on a border (not the titlebar!) of a floating window.
27 * Determines on which border the user clicked and launches the drag_pointer function
28 * with the resize_callback.
31 int floating_border_click(xcb_connection_t *conn, Client *client, xcb_button_press_event_t *event);
34 * Called when the user clicked on the titlebar of a floating window.
35 * Calls the drag_pointer function with the drag_window callback
38 void floating_drag_window(xcb_connection_t *conn, Client *client, xcb_button_press_event_t *event);
41 * Changes focus in the given direction for floating clients.
43 * Changing to the left/right means going to the previous/next floating client,
44 * changing to top/bottom means cycling through the Z-index.
47 void floating_focus_direction(xcb_connection_t *conn, Client *currently_focused, direction_t direction);
50 * Moves the client 10px to the specified direction.
53 void floating_move(xcb_connection_t *conn, Client *currently_focused, direction_t direction);