howm
howm
client.h
Go to the documentation of this file.
1 #ifndef CLIENT_H
2 #define CLIENT_H
3 
4 #include <stdbool.h>
5 #include <stdint.h>
6 #include <xcb/xcb.h>
7 #include <xcb/xproto.h>
8 
9 #include "types.h"
10 
22 
25 void change_client_gaps(client_t *c, int size);
26 void kill_client(monitor_t *m, workspace_t *w, client_t *c);
27 void move_up(client_t *c);
31 client_t *create_client(xcb_window_t w);
33 void client_to_ws(client_t *c, workspace_t *ws, bool follow);
34 void draw_clients(void);
35 void change_client_geom(client_t *c, uint16_t x, uint16_t y, uint16_t w, uint16_t h);
36 void set_fullscreen(client_t *c, bool fscr);
37 void set_urgent(client_t *c, bool urg);
38 void move_client(int cnt, bool up);
39 void move_current_down(void);
40 void move_current_up(void);
41 
42 void teleport_client(const int direction);
43 void focus_next_client(void);
44 void focus_prev_client(void);
45 void current_to_ws(workspace_t *ws);
46 void toggle_float(void);
47 void resize_float_width(const int dw);
48 void resize_float_height(const int dh);
49 void move_float_y(const int dy);
50 void move_float_x(const int dx);
51 void toggle_fullscreen(void);
52 void make_master(void);
53 void focus_urgent(void);
54 void resize_master(const int ds);
55 void paste(void);
56 void toggle_bar(void);
57 
58 #endif
client_t * prev_client(client_t *c, workspace_t *w)
Find the client before the given client.
Definition: client.c:39
void remove_client(monitor_t *m, workspace_t *w, client_t *c)
Remove a client from its workspace client list.
Definition: client.c:172
int get_non_tff_count(monitor_t *m)
Count how many clients aren&#39;t Transient, Floating or Fullscreen.
Definition: client.c:138
howm
void move_float_x(const int dx)
Change a floating window&#39;s x coordinate.
Definition: client.c:709
void kill_client(monitor_t *m, workspace_t *w, client_t *c)
Kill a client.
Definition: client.c:287
void move_up(client_t *c)
Move a client up in its client list.
Definition: client.c:230
void resize_float_height(const int dh)
Change the height of a floating client.
Definition: client.c:671
Definition: client.h:21
void change_client_gaps(client_t *c, int size)
A helper function to change the size of a client&#39;s gaps.
Definition: client.c:467
void client_to_ws(client_t *c, workspace_t *ws, bool follow)
Moves a client from one workspace to another.
Definition: client.c:374
void change_client_geom(client_t *c, uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Change the size and location of a client.
Definition: client.c:454
Definition: client.h:21
client_t * get_first_non_tff(monitor_t *m)
Returns the first client that isn&#39;t transient, floating or fullscreen.
Definition: client.c:156
void focus_next_client(void)
brief Move focus onto the client next in the client list.
Definition: client.c:258
void toggle_float(void)
Toggle a client between being in a floating or non-floating state.
Definition: client.c:628
void draw_clients(void)
Arrange the client&#39;s windows on the screen.
Definition: client.c:422
void paste(void)
Remove a list of clients from howm&#39;s delete register stack and paste them after the currently focused...
Definition: client.c:798
void set_fullscreen(client_t *c, bool fscr)
Set the fullscreen state of the client. Change its geometry and border widths.
Definition: client.c:525
Definition: client.h:21
Definition: client.h:21
void toggle_bar(void)
Toggle the space reserved for a status bar.
Definition: client.c:849
teleport_locations
Definition: client.h:21
void move_float_y(const int dy)
Change a floating window&#39;s y coordinate.
Definition: client.c:690
Definition: client.h:21
void teleport_client(const int direction)
Teleport a floating client&#39;s window to a location on the screen.
Definition: client.c:566
void resize_float_width(const int dw)
Change the width of a floating client.
Definition: client.c:652
client_t * create_client(xcb_window_t w)
Convert a window into a client.
Definition: client.c:490
Definition: types.h:48
client_t * next_client(client_t *c)
Find the next client.
Definition: client.c:62
void resize_master(const int ds)
Resize the master window of a stack for the current workspace.
Definition: client.c:776
Definition: types.h:25
void update_focused_client(client_t *c)
Sets c to the active window and gives it input focus. Sorts out border colours as well...
Definition: client.c:80
void make_master(void)
Moves the current window to the master window, when in stack mode.
Definition: client.c:723
void focus_urgent(void)
Focus a client that has an urgent hint.
Definition: client.c:751
Definition: client.h:21
void move_current_down(void)
Moves the current client down.
Definition: client.c:352
void set_urgent(client_t *c, bool urg)
Definition: client.c:548
void move_current_up(void)
Moves the current client up.
Definition: client.c:362
void current_to_ws(workspace_t *ws)
Moves the current client to the workspace passed in.
Definition: client.c:618
void move_client(int cnt, bool up)
Moves a client either upwards or down.
Definition: client.c:323
Definition: client.h:21
Definition: types.h:73
void toggle_fullscreen(void)
Toggle the fullscreen state of the current client.
Definition: client.c:740
void focus_prev_client(void)
brief Move focus onto the client previous in the client list.
Definition: client.c:271