mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
wmaker: fix moveres.c compilation warning
This patch is fixing compilation issue: moveres.c:1801:65: warning: unused parameter 'dx' [-Wunused-parameter] by removing variable 'dx' from getResizeDirection function.
This commit is contained in:
committed by
Carlos R. Mafra
parent
d3e5e73bfc
commit
6dc89b1522
@@ -1798,7 +1798,7 @@ int wMouseMoveWindow(WWindow * wwin, XEvent * ev)
|
||||
#define RESIZEBAR 1
|
||||
#define HCONSTRAIN 2
|
||||
|
||||
static int getResizeDirection(WWindow * wwin, int x, int y, int dx, int dy, int flags)
|
||||
static int getResizeDirection(WWindow * wwin, int x, int y, int dy, int flags)
|
||||
{
|
||||
int w = wwin->frame->core->width - 1;
|
||||
int cw = wwin->frame->resizebar_corner_width;
|
||||
@@ -1980,9 +1980,7 @@ void wMouseResizeWindow(WWindow * wwin, XEvent * ev)
|
||||
|| abs(orig_y - event.xmotion.y_root) < HRESIZE_THRESHOLD))
|
||||
flags |= HCONSTRAIN;
|
||||
|
||||
res = getResizeDirection(wwin, tx, ty,
|
||||
orig_x - event.xmotion.x_root,
|
||||
orig_y - event.xmotion.y_root, flags);
|
||||
res = getResizeDirection(wwin, tx, ty, orig_y - event.xmotion.y_root, flags);
|
||||
|
||||
if (res == (UP | LEFT))
|
||||
XChangeActivePointerGrab(dpy, ButtonMotionMask
|
||||
|
||||
Reference in New Issue
Block a user