-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwin.h
71 lines (59 loc) · 1.91 KB
/
mainwin.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* Skippy - Seduces Kids Into Perversion
*
* Copyright (C) 2004 Hyriand <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef SKIPPY_MAINWIN_H
#define SKIPPY_MAINWIN_H
#define BORDER_COLOR(mw) mw->pixels[0]
#define HIGHLIGHT_COLOR(mw) mw->pixels[1]
#define DISTANCE(mw) mw->distance
struct _Tooltip;
struct _MainWin
{
Display *dpy;
int screen;
Visual *visual;
Colormap colormap;
int depth;
Window root;
Imlib_Image background;
Window window;
Pixmap bg_pixmap;
int x, y;
unsigned int width, height, distance;
unsigned long pixels[2];
int no_free_color;
Bool stack_touched;
Imlib_Color_Modifier cm_normal, cm_highlight;
ClientWin *pressed, *focus;
dlist *cod;
struct _Tooltip *tooltip;
KeyCode key_act, key_up, key_down, key_left, key_right, key_enter, key_space, key_q, key_escape;
#ifdef XINERAMA
int xin_screens;
XineramaScreenInfo *xin_info, *xin_active;
#endif /* XINERAMA */
};
typedef struct _MainWin MainWin;
MainWin *mainwin_create(Display *, dlist *config);
void mainwin_destroy(MainWin *);
void mainwin_map(MainWin *);
void mainwin_unmap(MainWin *);
int mainwin_handle(MainWin *, XEvent *);
void mainwin_update_background(MainWin *mw);
void mainwin_update(MainWin *mw);
#endif /* SKIPPY_MAINWIN_H */