summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2011-06-23 08:04:21 +0200
committerMichael Cardell Widerkrantz <mc@hack.org>2011-06-23 08:04:21 +0200
commit318fbf0af1542e515f7f23fa6c20623ba4eec146 (patch)
tree803432f679512f8df3c67af2c7048357776db4b2 /mcwm.c
parent8c70f3eb08a0d79e7766372f287f0a401c3da5c9 (diff)
downloadmcwm-318fbf0af1542e515f7f23fa6c20623ba4eec146.zip
Removed unnecessary call to getgeom().
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/mcwm.c b/mcwm.c
index 5a76660..309a77a 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -3408,10 +3408,6 @@ void events(void)
case XCB_BUTTON_PRESS:
{
xcb_button_press_event_t *e;
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
e = (xcb_button_press_event_t *) ev;
PDEBUG("Button %d pressed in window %ld, subwindow %d "
@@ -3465,13 +3461,7 @@ void events(void)
/* Raise window. */
raisewindow(focuswin->id);
-
- /* Get window geometry. */
- if (!getgeom(focuswin->id, &x, &y, &width, &height))
- {
- break;
- }
-
+
/* Mouse button 1 was pressed. */
if (1 == e->detail)
{
@@ -3492,7 +3482,7 @@ void events(void)
/* Warp pointer to lower right. */
xcb_warp_pointer(conn, XCB_NONE, focuswin->id, 0, 0, 0,
- 0, width, height);
+ 0, focuswin->width, focuswin->height);
}
/*