diff options
author | Erkin Bahceci <erkinbah@gmail.com> | 2009-08-15 12:21:39 -0500 |
---|---|---|
committer | Erkin Bahceci <erkinbah@gmail.com> | 2009-08-15 12:21:39 -0500 |
commit | 2c609bcd0eae44379747b9943cc9e85669c9c734 (patch) | |
tree | 03355900f77fa443662edce8fd6e650cb321ee34 /plugins/move | |
parent | db7813dec1cd5f4aff4a21815370d2293e03bb1e (diff) | |
download | compiz-with-glib-mainloop-2c609bcd0eae44379747b9943cc9e85669c9c734.tar.gz compiz-with-glib-mainloop-2c609bcd0eae44379747b9943cc9e85669c9c734.tar.bz2 |
Unsigned int conversions.
Diffstat (limited to 'plugins/move')
-rw-r--r-- | plugins/move/src/move.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/move/src/move.cpp b/plugins/move/src/move.cpp index 6556416..c6761f3 100644 --- a/plugins/move/src/move.cpp +++ b/plugins/move/src/move.cpp @@ -292,7 +292,7 @@ moveHandleMotionEvent (CompScreen *s, { int dx, dy; int wX, wY; - unsigned int wWidth, wHeight; + int wWidth, wHeight; CompWindow *w; w = ms->w; @@ -339,7 +339,9 @@ moveHandleMotionEvent (CompScreen *s, width = wWidth + w->input ().left + w->input ().right; height = w->input ().top ? w->input ().top : 1; - status = XRectInRegion (ms->region, x, y, width, height); + status = XRectInRegion (ms->region, x, y, + (unsigned int) width, + (unsigned int) height); /* only constrain movement if previous position was valid */ if (ms->status == RectangleIn) @@ -350,7 +352,8 @@ moveHandleMotionEvent (CompScreen *s, { xStatus = XRectInRegion (ms->region, x, y - dy, - width, height); + (unsigned int) width, + (unsigned int) height); if (xStatus != RectangleIn) dx += (dx < 0) ? 1 : -1; @@ -362,7 +365,8 @@ moveHandleMotionEvent (CompScreen *s, { status = XRectInRegion (ms->region, x, y, - width, height); + (unsigned int) width, + (unsigned int) height); if (status != RectangleIn) dy += (dy < 0) ? 1 : -1; @@ -540,7 +544,7 @@ MoveScreen::handleEvent (XEvent *event) if (event->xclient.message_type == Atoms::wmMoveResize) { CompWindow *w; - unsigned long type = event->xclient.data.l[2]; + unsigned long type = (unsigned long) event->xclient.data.l[2]; MOVE_SCREEN (screen); |