summaryrefslogtreecommitdiffstats
path: root/x11vnc/win_utils.h
blob: 386666e600918027445a12c479d7be2cee68f589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _X11VNC_WIN_UTILS_H
#define _X11VNC_WIN_UTILS_H

/* -- win_utils.h -- */
#include "xinerama.h"
#include "winattr_t.h"

extern winattr_t *stack_list;
extern int stack_list_len;
extern int stack_list_num;

extern Window parent_window(Window win, char **name);
extern int valid_window(Window win, XWindowAttributes *attr_ret, int bequiet);
extern Bool xtranslate(Window src, Window dst, int src_x, int src_y, int *dst_x,
    int *dst_y, Window *child, int bequiet);
extern int get_window_size(Window win, int *x, int *y);
extern void snapshot_stack_list(int free_only, double allowed_age);
extern void update_stack_list(void);
extern Window query_pointer(Window start);
extern int pick_windowid(unsigned long *num);
extern Window descend_pointer(int depth, Window start, char *name_info, int len);

#endif /* _X11VNC_WIN_UTILS_H */