-
Notifications
You must be signed in to change notification settings - Fork 2
/
client.h
27 lines (27 loc) · 1.13 KB
/
client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* jbwm - Minimalist Window Manager for X */
/* Copyright 2008-2020, Alisa Bedard <alisabedard@gmail.com> */
/* Copyright 1999-2015, Ciaran Anscomb <evilwm@6809.org.uk> */
/* See README for license and other details. */
#ifndef JBWM_CLIENT_H
#define JBWM_CLIENT_H
#include <stdint.h>
#include <X11/Xlib.h>
struct JBWMClient;
/* Free client and destroy its windows and properties. */
void jbwm_client_free(struct JBWMClient * c,
struct JBWMClient ** head_client,
struct JBWMClient ** current_client);
/* Get the client with input focus. */
void jbwm_hide_client(const struct JBWMClient * c);
/* Move the client to the specified virtual desktop */
void jbwm_set_client_vdesk(struct JBWMClient * c, uint8_t desktop);
void jbwm_toggle_sticky(struct JBWMClient * c,
struct JBWMClient ** current_client);
void jbwm_restore_client(struct JBWMClient const * c);
__attribute__((pure))
/* Return the client that has specified window as either window or parent.
* This is the third most called function. Show restraint in adding any
* future tests. */
struct JBWMClient * jbwm_find_client(struct JBWMClient * head,
const Window w);
#endif/* !JBWM_CLIENT_H */