On Sun, 29 Sep 2013, BALATON Zoltan escribió: > On Sun, 29 Sep 2013, Rodolfo García Peñas wrote: > >Who write the patch? ;-) > > I think it's you if you're writing patches now anyway. :-)
Brrr. Is attached. You should write some patches, you can help a lot. Best regards, Rodolfo. > Regards, > BALATON Zoltan -- ||// //\\// Rodolfo "kix" Garcia ||\\// //\\ http://www.kix.es/
>From f9d46d72be95b802873aba99b6232dee58ee2102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= <[email protected]> Date: Sun, 29 Sep 2013 17:33:30 +0200 Subject: [PATCH] Cursors enumeration code style This patch is only a code style for the w_cursor enum. The patch moves the default cursor out of the w_cursor enumeration, and uses the same value that the normal cursor. Then, the numbers in the enumeration can be removed. This patch is an idea of BALATON Zoltan. --- src/WindowMaker.h | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src/WindowMaker.h b/src/WindowMaker.h index 7dec559..e7d8ead 100644 --- a/src/WindowMaker.h +++ b/src/WindowMaker.h @@ -104,28 +104,29 @@ typedef struct WObjDescriptor { /* Mouse cursors */ typedef enum { - WCUR_DEFAULT = 0, - WCUR_NORMAL = 0, - WCUR_MOVE = 1, - WCUR_RESIZE = 2, - WCUR_TOPLEFTRESIZE = 3, - WCUR_TOPRIGHTRESIZE = 4, - WCUR_BOTTOMLEFTRESIZE = 5, - WCUR_BOTTOMRIGHTRESIZE = 6, - WCUR_VERTICALRESIZE = 7, - WCUR_HORIZONRESIZE = 8, - WCUR_WAIT = 9, - WCUR_ARROW = 10, - WCUR_QUESTION = 11, - WCUR_TEXT = 12, - WCUR_SELECT = 13, - WCUR_ROOT = 14, - WCUR_EMPTY = 15, + WCUR_NORMAL, + WCUR_MOVE, + WCUR_RESIZE, + WCUR_TOPLEFTRESIZE, + WCUR_TOPRIGHTRESIZE, + WCUR_BOTTOMLEFTRESIZE, + WCUR_BOTTOMRIGHTRESIZE, + WCUR_VERTICALRESIZE, + WCUR_HORIZONRESIZE, + WCUR_WAIT, + WCUR_ARROW, + WCUR_QUESTION, + WCUR_TEXT, + WCUR_SELECT, + WCUR_ROOT, + WCUR_EMPTY, /* Count of the number of cursors defined */ - WCUR_LAST = 16 + WCUR_LAST } w_cursor; +#define WCUR_DEFAULT WCUR_NORMAL + /* geometry displays */ #define WDIS_NEW 0 /* new style */ #define WDIS_CENTER 1 /* center of screen */ -- 1.8.4.rc3
