# This is a BitKeeper generated patch for the following project: # Project Name: Lightweight Window Manager # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.2 -> 1.3 # disp.c 1.1 -> 1.2 # lwm.h 1.1 -> 1.2 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/02/10 jcopenha@marco.(none) 1.3 # Add LAUNCH and MENU button defines. # -------------------------------------------- # diff -Nru a/disp.c b/disp.c --- a/disp.c Mon Feb 11 14:50:42 2002 +++ b/disp.c Mon Feb 11 14:50:42 2002 @@ -174,11 +174,11 @@ /* Deal with root window button presses. */ if (e->window == e->root) { - if (e->button == Button3) { + if (e->button == LAUNCH_BUTTON) { + shell(getScreenFromRoot(e->root), e->button, e->x, e->y); + } else if (e->button == MENU_BUTTON) { cmapfocus(0); menuhit(e); - } else { - shell(getScreenFromRoot(e->root), e->button, e->x, e->y); } } } diff -Nru a/lwm.h b/lwm.h --- a/lwm.h Mon Feb 11 14:50:42 2002 +++ b/lwm.h Mon Feb 11 14:50:42 2002 @@ -12,9 +12,11 @@ #define DEFAULT_TERMINAL "xterm" #define DEFAULT_BORDER 6 -#define HIDE_BUTTON Button3 -#define MOVE_BUTTON Button2 -#define RESHAPE_BUTTON Button1 +#define HIDE_BUTTON Button3 +#define MOVE_BUTTON Button2 +#define RESHAPE_BUTTON Button1 +#define LAUNCH_BUTTON Button2 +#define MENU_BUTTON Button3 /* --- End of administrator-configurable defaults. --- */