summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-02-12 08:08:04 +0100
committerDanny Baumann <dannybaumann@web.de>2008-02-12 08:08:04 +0100
commitffd454953121bf8eed6b338ea97aa491001e3073 (patch)
tree92ed5aba95f5def3c5bd6a1be645448d97e05a3f
parent4b244f577765cf5047fa0092399d77b2becc235e (diff)
downloadshelf-ffd454953121bf8eed6b338ea97aa491001e3073.tar.gz
shelf-ffd454953121bf8eed6b338ea97aa491001e3073.tar.bz2
Raise window on click.
-rw-r--r--shelf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shelf.c b/shelf.c
index 76cdd8d..16525f7 100644
--- a/shelf.c
+++ b/shelf.c
@@ -541,7 +541,7 @@ handleButtonPress (CompWindow *w)
if (!otherScreenGrabExist (s, "shelf", 0))
{
- moveInputFocusToWindow (w);
+ activateWindow (w);
ss->grabbedWindow = w->id;
ss->grabIndex = pushScreenGrab (s, ss->moveCursor, "shelf");
}
@@ -602,7 +602,6 @@ handleButtonRelease (CompWindow *w)
ss->lastPointerX = 0;
ss->lastPointerY = 0;
- /* FIXME: shouldn't we better activateWindow() here? */
moveInputFocusToWindow (w);
removeScreenGrab (s, ss->grabIndex, NULL);
ss->grabIndex = 0;