X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Futil%2Fcommon.h;h=f97ed7191bdbb86a36b9472ece9918a8f17329a5;hb=ef9c33a6a77e304bceaa00b146869bf3747aaa57;hp=313a3b71528792a03ffbc1ee01da4f5eed94f55f;hpb=d1123a0ede12eb1126eb5eb932d9177de67d46c5;p=chaz%2Ftint2 diff --git a/src/util/common.h b/src/util/common.h index 313a3b7..f97ed71 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -1,6 +1,6 @@ /************************************************************************** * Common declarations -* +* **************************************************************************/ #ifndef COMMON_H @@ -11,12 +11,26 @@ #include "area.h" -// taskbar table : convert 2 dimension in 1 dimension -#define index(i, j) ((i * panel.nb_monitor) + j) +/* +void fxfree(void** ptr){ + if(*ptr){ + free(*ptr); + *ptr=NULL; + } + } +FXint fxmalloc(void** ptr,unsigned long size){ + *ptr=NULL; + if(size!=0){ + if((*ptr=malloc(size))==NULL) return FALSE; + } + return TRUE; + } +*/ // mouse actions enum { NONE=0, CLOSE, TOGGLE, ICONIFY, SHADE, TOGGLE_ICONIFY }; +#define ALLDESKTOP 0xFFFFFFFF typedef struct config_border