summaryrefslogtreecommitdiff
path: root/resize2
diff options
context:
space:
mode:
Diffstat (limited to 'resize2')
-rw-r--r--resize2/resize2.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/resize2/resize2.c b/resize2/resize2.c
index 7492606..bd83c0d 100644
--- a/resize2/resize2.c
+++ b/resize2/resize2.c
@@ -322,15 +322,6 @@ resizeHandleDeviceReleaseEvent (CompDisplay *d, XDeviceButtonEvent *event)
dev->w = NULL;
XUngrabDevice (d->display, dev->device, CurrentTime);
-// XUngrabDeviceButton( d->display /* display */,
- // dev->device /* device */,
- //Button1 /* button */,
-// AnyModifier /* modifiers */,
- // NULL /* modifier_dev */,
- //w->id /* grab_window */
-//);
-
-
resizeCalculateWindowSize (w);
resizeUpdateWindowSize (w);
}
@@ -389,9 +380,7 @@ resizeHandleClientMessage (CompDisplay *d, XEvent *event)
DeviceMotionNotify (dev->device, rd->type_motion, classes[1]);
DeviceEnterNotify (dev->device, rd->type_enter, classes[2]);
DeviceLeaveNotify (dev->device, rd->type_leave, classes[3]);
-
- //XSelectExtensionEvent(d->display, w->screen->root, classes, 4);
-
+
Bool status = XGrabDevice(d->display,
dev->device,
w->id,
@@ -401,30 +390,6 @@ resizeHandleClientMessage (CompDisplay *d, XEvent *event)
GrabModeAsync,
GrabModeAsync,
CurrentTime);
- /*
- Bool status= XExtendedGrabDevice (d->display,
- dev->device,
- w->id,
- GrabModeAsync,
- FALSE,
- None,
- None, /* XXX should be set to the correct cursor for the corner
- 4,
- classes,
- 0,
- NULL);/
-
- Bool status = XGrabDeviceButton(d->display,
- dev->device,
- Button1,
- AnyModifier,
- NULL,
- w->id,
- False,
- 4,
- classes,
- GrabModeAsync,
- GrabModeAsync); */
if(status)
{