howm
howm
xcb_help.h
Go to the documentation of this file.
1 #ifndef XCB_HELP_H
2 #define XCB_HELP_H
3 
4 #include <stdint.h>
5 #include <xcb/randr.h>
6 #include <xcb/xproto.h>
7 
8 #include "types.h"
9 
23 
24 void elevate_window(xcb_window_t win);
25 void move_resize(xcb_window_t win, uint16_t x, uint16_t y, uint16_t w, uint16_t h);
26 void set_border_width(xcb_window_t win, uint16_t w);
27 void get_atoms(const char **names, xcb_atom_t *atoms);
28 void check_other_wm(void);
29 void focus_window(xcb_window_t win);
30 void grab_buttons(client_t *c);
31 void delete_win(xcb_window_t win);
32 void setup_ewmh(void);
33 void setup_ewmh_geom(void);
34 void ewmh_process_wm_state(client_t *c, xcb_atom_t a, int action);
36 xcb_randr_output_t *randr_get_outputs(unsigned int *nr_outputs);
37 xcb_rectangle_t output_reply_to_rect(xcb_randr_get_output_info_reply_t *output);
38 xcb_randr_output_t randr_get_primary_output(void);
39 void center_pointer(xcb_rectangle_t rect);
40 void warp_pointer(int16_t x, int16_t y);
41 
42 #endif
howm
void ewmh_set_current_workspace(void)
Definition: xcb_help.c:245
Definition: xcb_help.h:21
Definition: xcb_help.h:22
xcb_rectangle_t output_reply_to_rect(xcb_randr_get_output_info_reply_t *output)
Definition: xcb_help.c:277
Definition: xcb_help.h:20
wm_atom_enum
Definition: xcb_help.h:22
void move_resize(xcb_window_t win, uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Change the dimensions and location of a window (win).
Definition: xcb_help.c:60
net_atom_enum
Definition: xcb_help.h:20
Definition: xcb_help.h:20
void warp_pointer(int16_t x, int16_t y)
Definition: xcb_help.c:315
void setup_ewmh_geom(void)
Definition: xcb_help.c:233
xcb_randr_output_t * randr_get_outputs(unsigned int *nr_outputs)
Definition: xcb_help.c:250
void center_pointer(xcb_rectangle_t rect)
Definition: xcb_help.c:320
Definition: types.h:25
Definition: xcb_help.h:22
void setup_ewmh(void)
Create the EWMH connection, request all of the atoms and set some sensible defaults for them...
Definition: xcb_help.c:207
void ewmh_process_wm_state(client_t *c, xcb_atom_t a, int action)
Handle client messages that are related to WM_STATE.
Definition: xcb_help.c:182
void get_atoms(const char **names, xcb_atom_t *atoms)
Request all of the atoms that howm supports.
Definition: xcb_help.c:114
void set_border_width(xcb_window_t win, uint16_t w)
Sets the width of the borders around a window (win).
Definition: xcb_help.c:88
void grab_buttons(client_t *c)
Make a client listen for button press events.
Definition: xcb_help.c:73
void delete_win(xcb_window_t win)
Ask XCB to delete a window.
Definition: xcb_help.c:158
void check_other_wm(void)
Try to detect if another WM exists.
Definition: xcb_help.c:31
void focus_window(xcb_window_t win)
Focus the given window, so long as it isn&#39;t already focused.
Definition: xcb_help.c:141
xcb_randr_output_t randr_get_primary_output(void)
Definition: xcb_help.c:297
Definition: xcb_help.h:20
void elevate_window(xcb_window_t win)
Move a window to the front of all the other windows.
Definition: xcb_help.c:100