]> git.sur5r.net Git - i3/i3/blob - include/floating.h
Implement floating (please test and find bugs)
[i3/i3] / include / floating.h
1 /*
2  * vim:ts=8:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  *
6  * (c) 2009 Michael Stapelberg and contributors
7  *
8  * See file LICENSE for license information.
9  *
10  */
11 #ifndef _FLOATING_H
12 #define _FLOATING_H
13
14 /**
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.
18  *
19  */
20 void toggle_floating_mode(xcb_connection_t *conn, Client *client);
21
22 /**
23  * Called whenever the user clicks on a border (not the titlebar!) of a floating window.
24  * Determines on which border the user clicked and launches the drag_pointer function
25  * with the resize_callback.
26  *
27  */
28 int floating_border_click(xcb_connection_t *conn, Client *client, xcb_button_press_event_t *event);
29
30 /**
31  * Called when the user clicked on the titlebar of a floating window.
32  * Calls the drag_pointer function with the drag_window callback
33  *
34  */
35 void floating_drag_window(xcb_connection_t *conn, Client *client, xcb_button_press_event_t *event);
36
37 #endif