mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
renamed dprintf to dbprintf
This commit is contained in:
30
src/event.c
30
src/event.c
@@ -461,7 +461,7 @@ handleMapRequest(XEvent *ev)
|
|||||||
Window window = ev->xmaprequest.window;
|
Window window = ev->xmaprequest.window;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dprintf("got map request for %x\n", (unsigned)window);
|
dbprintf("got map request for %x\n", (unsigned)window);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((wwin = wWindowFor(window))) {
|
if ((wwin = wWindowFor(window))) {
|
||||||
@@ -540,7 +540,7 @@ handleDestroyNotify(XEvent *event)
|
|||||||
Window window = event->xdestroywindow.window;
|
Window window = event->xdestroywindow.window;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got destroy notify");
|
dbputs("got destroy notify");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wwin = wWindowFor(window);
|
wwin = wWindowFor(window);
|
||||||
@@ -577,7 +577,7 @@ handleExpose(XEvent *event)
|
|||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got expose");
|
dbputs("got expose");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (XCheckTypedWindowEvent(dpy, event->xexpose.window, Expose, &ev));
|
while (XCheckTypedWindowEvent(dpy, event->xexpose.window, Expose, &ev));
|
||||||
@@ -601,7 +601,7 @@ handleButtonPress(XEvent *event)
|
|||||||
WScreen *scr;
|
WScreen *scr;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got button press");
|
dbputs("got button press");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
scr = wScreenForRootWindow(event->xbutton.root);
|
scr = wScreenForRootWindow(event->xbutton.root);
|
||||||
@@ -708,7 +708,7 @@ handleMapNotify(XEvent *event)
|
|||||||
WWindow *wwin;
|
WWindow *wwin;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got map");
|
dbputs("got map");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wwin = wWindowFor(event->xmap.event);
|
wwin = wWindowFor(event->xmap.event);
|
||||||
@@ -733,7 +733,7 @@ handleUnmapNotify(XEvent *event)
|
|||||||
Bool withdraw = False;
|
Bool withdraw = False;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got unmap");
|
dbputs("got unmap");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* only process windows with StructureNotify selected
|
/* only process windows with StructureNotify selected
|
||||||
@@ -787,7 +787,7 @@ handleConfigureRequest(XEvent *event)
|
|||||||
WWindow *wwin;
|
WWindow *wwin;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got configure request");
|
dbputs("got configure request");
|
||||||
#endif
|
#endif
|
||||||
if (!(wwin=wWindowFor(event->xconfigurerequest.window))) {
|
if (!(wwin=wWindowFor(event->xconfigurerequest.window))) {
|
||||||
/*
|
/*
|
||||||
@@ -811,7 +811,7 @@ handlePropertyNotify(XEvent *event)
|
|||||||
WScreen *scr;
|
WScreen *scr;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got property notify");
|
dbputs("got property notify");
|
||||||
#endif
|
#endif
|
||||||
if ((wwin=wWindowFor(event->xproperty.window))) {
|
if ((wwin=wWindowFor(event->xproperty.window))) {
|
||||||
if (!XGetGeometry(dpy, wwin->client_win, &jr, &ji, &ji,
|
if (!XGetGeometry(dpy, wwin->client_win, &jr, &ji, &ji,
|
||||||
@@ -841,7 +841,7 @@ handleClientMessage(XEvent *event)
|
|||||||
WObjDescriptor *desc;
|
WObjDescriptor *desc;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got client message");
|
dbputs("got client message");
|
||||||
#endif
|
#endif
|
||||||
/* handle transition from Normal to Iconic state */
|
/* handle transition from Normal to Iconic state */
|
||||||
if (event->xclient.message_type == _XA_WM_CHANGE_STATE
|
if (event->xclient.message_type == _XA_WM_CHANGE_STATE
|
||||||
@@ -978,7 +978,7 @@ handleEnterNotify(XEvent *event)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got enter notify");
|
dbputs("got enter notify");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (XCheckTypedWindowEvent(dpy, event->xcrossing.window, LeaveNotify,
|
if (XCheckTypedWindowEvent(dpy, event->xcrossing.window, LeaveNotify,
|
||||||
@@ -1130,7 +1130,7 @@ handleShapeNotify(XEvent *event)
|
|||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("got shape notify");
|
dbputs("got shape notify");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (XCheckTypedWindowEvent(dpy, shev->window, event->type, &ev)) {
|
while (XCheckTypedWindowEvent(dpy, shev->window, event->type, &ev)) {
|
||||||
@@ -1362,7 +1362,7 @@ doWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
|
|||||||
if (!wwin)
|
if (!wwin)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* dputs("IN");*/
|
/* dbputs("IN");*/
|
||||||
keymap = XGetModifierMapping(dpy);
|
keymap = XGetModifierMapping(dpy);
|
||||||
|
|
||||||
|
|
||||||
@@ -1398,7 +1398,7 @@ doWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
|
|||||||
WMHandleEvent(&ev);
|
WMHandleEvent(&ev);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/*dputs("EV");*/
|
/*dbputs("EV");*/
|
||||||
/* ignore CapsLock */
|
/* ignore CapsLock */
|
||||||
modifiers = ev.xkey.state & ValidModMask;
|
modifiers = ev.xkey.state & ValidModMask;
|
||||||
|
|
||||||
@@ -1439,7 +1439,7 @@ doWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*dputs("OUT");*/
|
/*dbputs("OUT");*/
|
||||||
XFree(keymap);
|
XFree(keymap);
|
||||||
|
|
||||||
XUngrabKeyboard(dpy, CurrentTime);
|
XUngrabKeyboard(dpy, CurrentTime);
|
||||||
@@ -1836,7 +1836,7 @@ handleMotionNotify(XEvent *event)
|
|||||||
event->xmotion.y_root >= (scr->scr_height - 2)) {
|
event->xmotion.y_root >= (scr->scr_height - 2)) {
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("pointer at screen edge");
|
dbputs("pointer at screen edge");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
menu = wMenuUnderPointer(scr);
|
menu = wMenuUnderPointer(scr);
|
||||||
|
|||||||
@@ -162,8 +162,8 @@ Bool wGetIconName(Display *dpy, Window win, char **iconname);
|
|||||||
|
|
||||||
/* debugging stuff */
|
/* debugging stuff */
|
||||||
|
|
||||||
void dprintf(char *, ...);
|
void dbprintf(char *, ...);
|
||||||
void dputs(char *);
|
void dbputs(char *);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
12
src/menu.c
12
src/menu.c
@@ -286,7 +286,7 @@ wMenuInsertCallback(WMenu *menu, int index, char *text,
|
|||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (!menu) {
|
if (!menu) {
|
||||||
dprintf("Passed NULL as menu parameter to wMenuAddCallback() \n");
|
dbprintf("Passed NULL as menu parameter to wMenuAddCallback() \n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -299,7 +299,7 @@ wMenuInsertCallback(WMenu *menu, int index, char *text,
|
|||||||
if (menu->entry_no >= menu->alloced_entries) {
|
if (menu->entry_no >= menu->alloced_entries) {
|
||||||
void *tmp;
|
void *tmp;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("doing wrealloc()");
|
dbputs("doing wrealloc()");
|
||||||
#endif
|
#endif
|
||||||
tmp = wrealloc(menu->entries,
|
tmp = wrealloc(menu->entries,
|
||||||
sizeof(WMenuEntry)*(menu->alloced_entries+5));
|
sizeof(WMenuEntry)*(menu->alloced_entries+5));
|
||||||
@@ -1779,7 +1779,7 @@ wMenuScroll(WMenu *menu, XEvent *event)
|
|||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("Entering menu Scroll");
|
dbputs("Entering menu Scroll");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (omenu->jump_back)
|
if (omenu->jump_back)
|
||||||
@@ -1890,7 +1890,7 @@ wMenuScroll(WMenu *menu, XEvent *event)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dputs("Leaving menu Scroll");
|
dbputs("Leaving menu Scroll");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2314,7 +2314,7 @@ menuTitleMouseDown(WCoreWindow *sender, void *data, XEvent *event)
|
|||||||
Bool started;
|
Bool started;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dprintf("Moving menu\n");
|
dbprintf("Moving menu\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* can't touch the menu copy */
|
/* can't touch the menu copy */
|
||||||
@@ -2401,7 +2401,7 @@ menuTitleMouseDown(WCoreWindow *sender, void *data, XEvent *event)
|
|||||||
if (ev.xbutton.button != event->xbutton.button)
|
if (ev.xbutton.button != event->xbutton.button)
|
||||||
break;
|
break;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
dprintf("End menu move\n");
|
dbprintf("End menu move\n");
|
||||||
#endif
|
#endif
|
||||||
XUngrabPointer(dpy, CurrentTime);
|
XUngrabPointer(dpy, CurrentTime);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1462,7 +1462,7 @@ ExecuteShellCommand(WScreen *scr, char *command)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void dprintf(char *format, ...)
|
void dbprintf(char *format, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
||||||
@@ -1474,7 +1474,7 @@ void dprintf(char *format, ...)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void dputs(char *text)
|
void dbputs(char *text)
|
||||||
{
|
{
|
||||||
puts(text);
|
puts(text);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|||||||
Reference in New Issue
Block a user