mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Remove LITE config option
Why?
1. The reason for its existence is to "Disable some stuff that are
duplicated in kde", and I don't think I will ever need that.
Furthermore, even the description in the configure script reads
"disable some stuff (dont use it)".
2. It makes the code uglier at some places, e.g.,
#ifdef LITE
{
#if 0
}
#endif
#else
if (!wRootMenuPerformShortcut(event)) {
#endif
which by the way is the ugliness which motivated this patch.
3. Does not even compile anymore. It fails with
CC dockedapp.o
CC event.o
event.c: In function 'executeButtonAction:
event.c:711: error: WScreen has no member named root_menu
event.c:712: error: WScreen has no member named root_menu
event.c:713: error: WScreen has no member named root_menu
event.c:715: error: WScreen has no member named root_menu
event.c:720: error: WScreen has no member named switch_menu
event.c:721: error: WScreen has no member named switch_menu
event.c:722: error: WScreen has no member named switch_menu
event.c:724: error: WScreen has no member named switch_menu
make[2]: *** [event.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
But instead of fixing this (it would be trivial), let's get
rid of the whole ugliness altogether.
This commit is contained in:
14
src/event.c
14
src/event.c
@@ -744,7 +744,6 @@ static void handleButtonPress(XEvent * event)
|
||||
wBalloonHide(scr);
|
||||
#endif
|
||||
|
||||
#ifndef LITE
|
||||
if (event->xbutton.window == scr->root_win) {
|
||||
if (event->xbutton.button == Button1 && wPreferences.mouse_button1 != WA_NONE) {
|
||||
executeButtonAction(scr, event, wPreferences.mouse_button1);
|
||||
@@ -758,7 +757,6 @@ static void handleButtonPress(XEvent * event)
|
||||
wWorkspaceRelativeChange(scr, -1);
|
||||
}
|
||||
}
|
||||
#endif /* !LITE */
|
||||
|
||||
desc = NULL;
|
||||
if (XFindContext(dpy, event->xbutton.subwindow, wWinContext, (XPointer *) & desc) == XCNOENT) {
|
||||
@@ -1360,14 +1358,8 @@ static void handleKeyPress(XEvent * event)
|
||||
}
|
||||
|
||||
if (command < 0) {
|
||||
#ifdef LITE
|
||||
{
|
||||
#if 0
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
|
||||
if (!wRootMenuPerformShortcut(event)) {
|
||||
#endif
|
||||
static int dontLoop = 0;
|
||||
|
||||
if (dontLoop > 10) {
|
||||
@@ -1390,7 +1382,7 @@ static void handleKeyPress(XEvent * event)
|
||||
#define ISFOCUSED(w) ((w) && (w)->flags.focused)
|
||||
|
||||
switch (command) {
|
||||
#ifndef LITE
|
||||
|
||||
case WKBD_ROOTMENU:
|
||||
/*OpenRootMenu(scr, event->xkey.x_root, event->xkey.y_root, True); */
|
||||
if (!CheckFullScreenWindowFocused(scr)) {
|
||||
@@ -1406,7 +1398,7 @@ static void handleKeyPress(XEvent * event)
|
||||
True);
|
||||
}
|
||||
break;
|
||||
#endif /* !LITE */
|
||||
|
||||
case WKBD_WINDOWMENU:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin))
|
||||
OpenWindowMenu(wwin, wwin->frame_x, wwin->frame_y + wwin->frame->top_width, True);
|
||||
|
||||
Reference in New Issue
Block a user