]> Dogcows Code - chaz/tint2/blob - src/util/common.h
fixed decorated window with compiz
[chaz/tint2] / src / util / common.h
1 /**************************************************************************
2 * Common declarations
3 *
4 **************************************************************************/
5
6 #ifndef COMMON_H
7 #define COMMON_H
8
9
10 #define WM_CLASS_TINT "panel"
11
12 #include "area.h"
13
14 // taskbar table : convert 2 dimension in 1 dimension
15 #define index(i, j) ((i * panel.nb_monitor) + j)
16
17 /*
18 void fxfree(void** ptr){
19 if(*ptr){
20 free(*ptr);
21 *ptr=NULL;
22 }
23 }
24 FXint fxmalloc(void** ptr,unsigned long size){
25 *ptr=NULL;
26 if(size!=0){
27 if((*ptr=malloc(size))==NULL) return FALSE;
28 }
29 return TRUE;
30 }
31 */
32
33 // mouse actions
34 enum { NONE=0, CLOSE, TOGGLE, ICONIFY, SHADE, TOGGLE_ICONIFY };
35
36
37
38 typedef struct config_border
39 {
40 double color[3];
41 double alpha;
42 int width;
43 int rounded;
44 } config_border;
45
46
47 typedef struct config_color
48 {
49 double color[3];
50 double alpha;
51 } config_color;
52
53
54
55
56 #endif
57
This page took 0.040441 seconds and 4 git commands to generate.