1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-05 13:24:14 +01:00

changed indentation to use spaces only

This commit is contained in:
dan
2004-10-12 21:28:27 +00:00
parent 5912898b06
commit 6830b05716
240 changed files with 35951 additions and 35773 deletions

View File

@@ -1,19 +1,19 @@
/* event.c - WindowMaker event handler
*
*
* WMlib - WindowMaker application programming interface
*
*
* Copyright (C) 1997-2003 Alfredo K. Kojima
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
@@ -42,16 +42,16 @@ findEntry(WMMenu *menu, int tag)
wmMenuEntry *entry=menu->first;
while (entry) {
if (entry->tag == tag) {
return entry;
}
if (entry->cascade) {
wmMenuEntry *tmp;
tmp = findEntry(entry->cascade, tag);
if (tmp)
return tmp;
}
entry = entry->next;
if (entry->tag == tag) {
return entry;
}
if (entry->cascade) {
wmMenuEntry *tmp;
tmp = findEntry(entry->cascade, tag);
if (tmp)
return tmp;
}
entry = entry->next;
}
return NULL;
}
@@ -63,13 +63,13 @@ wmHandleMenuEvents(WMAppContext *app, XEvent *event)
wmMenuEntry *entry;
switch (event->xclient.data.l[1]) {
case wmSelectItem:
entry = findEntry(app->main_menu, event->xclient.data.l[2]);
if (entry && entry->callback) {
(*entry->callback)(entry->clientData, event->xclient.data.l[2],
event->xclient.data.l[0]);
}
break;
case wmSelectItem:
entry = findEntry(app->main_menu, event->xclient.data.l[2]);
if (entry && entry->callback) {
(*entry->callback)(entry->clientData, event->xclient.data.l[2],
event->xclient.data.l[0]);
}
break;
}
}
@@ -79,17 +79,18 @@ WMProcessEvent(WMAppContext *app, XEvent *event)
{
int proc=False;
if (!_XA_WINDOWMAKER_MENU) {
_XA_WINDOWMAKER_MENU = XInternAtom(app->dpy, "_WINDOWMAKER_MENU",
False);
_XA_WINDOWMAKER_MENU = XInternAtom(app->dpy, "_WINDOWMAKER_MENU",
False);
}
switch (event->type) {
case ClientMessage:
if (event->xclient.format == 32
&& event->xclient.message_type == _XA_WINDOWMAKER_MENU
&& event->xclient.window == app->main_window) {
wmHandleMenuEvents(app, event);
proc = True;
}
case ClientMessage:
if (event->xclient.format == 32
&& event->xclient.message_type == _XA_WINDOWMAKER_MENU
&& event->xclient.window == app->main_window) {
wmHandleMenuEvents(app, event);
proc = True;
}
}
return proc;
}