1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 22:52:34 +01:00

Remove DEBUG statements, #if 0 etc

...and some other cleanups.
This commit is contained in:
Carlos R. Mafra
2010-03-17 17:44:14 +01:00
parent cef4fbb422
commit 5178465bb6
21 changed files with 34 additions and 576 deletions

View File

@@ -380,20 +380,6 @@ RImage *wIconValidateIconSize(WScreen * scr, RImage * icon)
icon = tmp;
}
#endif
#if 0
if (icon->width > wPreferences.icon_size || icon->height > wPreferences.icon_size) {
if (icon->width > icon->height) {
w = wPreferences.icon_size - 4;
h = w * icon->height / icon->width;
} else {
h = wPreferences.icon_size - 4;
w = h * icon->width / icon->height;
}
tmp = RScaleImage(icon, w, h);
RReleaseImage(icon);
icon = tmp;
}
#endif
return icon;
}
@@ -803,9 +789,7 @@ static void miniwindowMouseDown(WObjDescriptor * desc, XEvent * event)
miniwindowDblClick(desc, event);
return;
}
#ifdef DEBUG
puts("Moving miniwindow");
#endif
if (event->xbutton.button == Button1) {
if (event->xbutton.state & MOD_MASK)
wLowerFrame(icon->core);
@@ -831,9 +815,6 @@ static void miniwindowMouseDown(WObjDescriptor * desc, XEvent * event)
if (XGrabPointer(dpy, icon->core->window, False, ButtonMotionMask
| ButtonReleaseMask | ButtonPressMask, GrabModeAsync,
GrabModeAsync, None, None, CurrentTime) != GrabSuccess) {
#ifdef DEBUG0
wwarning("pointer grab failed for icon move");
#endif
}
while (1) {
WMMaskEvent(dpy, PointerMotionMask | ButtonReleaseMask | ButtonPressMask
@@ -875,9 +856,6 @@ static void miniwindowMouseDown(WObjDescriptor * desc, XEvent * event)
wwin->icon_x = x;
wwin->icon_y = y;
#ifdef DEBUG
puts("End miniwindow move");
#endif
XUngrabPointer(dpy, CurrentTime);
if (wPreferences.auto_arrange_icons)