aboutsummaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/event.c b/src/event.c
index d0e80fa..f88e2a5 100644
--- a/src/event.c
+++ b/src/event.c
@@ -338,7 +338,6 @@ void HandleButtonEvent(const XButtonEvent *event) {
void HandleKeyPress(const XKeyEvent *event) {
ClientNode *np;
KeyType key;
- int height, width, x, y;
key = GetKey(event);
@@ -376,21 +375,7 @@ void HandleKeyPress(const XKeyEvent *event) {
case KEY_RAISE:
if(np) {
RaiseClient(np);
- x = np->x;
- y = np->y;
- width = np->width;
- height = np->height;
- if(np->state.border & BORDER_OUTLINE) {
- x -= borderWidth;
- y -= borderWidth;
- width += borderWidth * 2;
- height += borderWidth * 2;
- }
- if(np->state.border & BORDER_TITLE) {
- y -= titleHeight;
- height += titleHeight;
- }
- MoveMouse(rootWindow, x + width / 2, y + height / 2);
+ MoveMouseToClient(np);
}
break;
case KEY_CLOSE: