Squashed 'clipmenu/' content from commit e0ec3bc6
git-subtree-dir: clipmenu git-subtree-split: e0ec3bc6608ecc70ed17e8da76e27bf90b1e8e90
This commit is contained in:
commit
b4e3116f02
32 changed files with 5760 additions and 0 deletions
34
src/x.h
Normal file
34
src/x.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#ifndef CM_X_H
|
||||
#define CM_X_H
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
DEFINE_DROP_FUNC_VOID(XFree)
|
||||
|
||||
size_t _nonnull_ get_incr_threshold(Display *dpy);
|
||||
size_t _nonnull_ get_chunk_size(Display *dpy);
|
||||
char _nonnull_ *get_window_title(Display *dpy, Window owner);
|
||||
int xerror_handler(Display *dpy _unused_, XErrorEvent *ee);
|
||||
|
||||
struct incr_transfer {
|
||||
struct incr_transfer *next;
|
||||
struct incr_transfer *prev;
|
||||
Window requestor;
|
||||
Atom property;
|
||||
Atom target;
|
||||
int format;
|
||||
char *data;
|
||||
size_t data_size;
|
||||
size_t data_capacity;
|
||||
size_t offset;
|
||||
};
|
||||
|
||||
#define it_dbg(it, fmt, ...) \
|
||||
dbg("[incr 0x%lx] " fmt, (unsigned long)(it)->requestor, ##__VA_ARGS__)
|
||||
void _nonnull_ it_add(struct incr_transfer **it_list, struct incr_transfer *it);
|
||||
void _nonnull_ it_remove(struct incr_transfer **it_list,
|
||||
struct incr_transfer *it);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue