]> git.lizzy.rs Git - bspwm.git/blobdiff - window.h
Implement sticky windows
[bspwm.git] / window.h
index 437b9f07bc91f649d3702c7b6835dd45f7ef4d43..2690bba3eb5b98d299d32d0042ad90fc2cbd118b 100644 (file)
--- a/window.h
+++ b/window.h
@@ -4,19 +4,57 @@
 #include <stdarg.h>
 #include <xcb/xcb.h>
 #include <xcb/xcb_event.h>
+#include <xcb/xcb_icccm.h>
 #include "types.h"
 
-#define MIN_WIDTH  32
-#define MIN_HEIGHT 32
-
-bool locate_window(xcb_window_t, window_location_t *);
-void draw_triple_border(node_t *, uint32_t);
-void close_window(desktop_t *, node_t *);
-void toggle_fullscreen(client_t *);
-void list_windows(char *);
+pointer_state_t *make_pointer_state(void);
+void center(xcb_rectangle_t, xcb_rectangle_t *);
+bool contains(xcb_rectangle_t, xcb_rectangle_t);
+bool is_inside(monitor_t *, xcb_point_t);
+xcb_rectangle_t get_rectangle(client_t *);
+void get_side_handle(client_t *, direction_t, xcb_point_t *);
+monitor_t *monitor_from_point(xcb_point_t);
+monitor_t *underlying_monitor(client_t *);
+void manage_window(monitor_t *, desktop_t *, xcb_window_t);
+void adopt_orphans(void);
+void window_draw_border(node_t *, bool, bool);
+uint32_t get_border_color(client_t *, bool, bool);
+void update_floating_rectangle(client_t *);
+void query_pointer(xcb_window_t *, xcb_point_t *);
+void window_close(node_t *);
+void window_kill(desktop_t *, node_t *);
+void set_fullscreen(node_t *, bool);
+void set_floating(node_t *, bool);
+void set_locked(monitor_t *, desktop_t *, node_t *, bool);
+void set_sticky(monitor_t *, desktop_t *, node_t *, bool);
+void set_urgency(monitor_t *, desktop_t *, node_t *, bool);
+void set_floating_atom(xcb_window_t, uint32_t);
+void enable_floating_atom(xcb_window_t);
+void disable_floating_atom(xcb_window_t);
 void window_border_width(xcb_window_t, uint32_t);
+void window_move(xcb_window_t, int16_t, int16_t);
+void window_resize(xcb_window_t, uint16_t, uint16_t);
 void window_move_resize(xcb_window_t, int16_t, int16_t, uint16_t, uint16_t);
+bool window_focus(xcb_window_t);
 void window_raise(xcb_window_t);
+void window_stack(xcb_window_t, xcb_window_t, uint32_t);
+void window_above(xcb_window_t, xcb_window_t);
+void window_below(xcb_window_t, xcb_window_t);
 void window_lower(xcb_window_t);
+void window_set_visibility(xcb_window_t, bool);
+void window_hide(xcb_window_t);
+void window_show(xcb_window_t);
+void toggle_visibility(void);
+void enable_motion_recorder(void);
+void disable_motion_recorder(void);
+void update_motion_recorder(void);
+void update_input_focus(void);
+void set_input_focus(node_t *);
+void clear_input_focus(void);
+void center_pointer(monitor_t *);
+void get_atom(char *, xcb_atom_t *);
+void set_atom(xcb_window_t, xcb_atom_t, uint32_t);
+bool has_proto(xcb_atom_t, xcb_icccm_get_wm_protocols_reply_t *);
+void send_client_message(xcb_window_t, xcb_atom_t property, xcb_atom_t);
 
 #endif