summaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-11-03 21:44:16 +0100
committerDanny Baumann <dannybaumann@web.de>2007-11-03 21:44:16 +0100
commit892d5953e4be028a1e72bd67a9fe69b64a3dbb8e (patch)
treeef992b534084171a38303c16715412c56ec04de1 /selection.c
parent1e485c5233d12c1939edf699381b643cb02a0569 (diff)
downloadgroup-892d5953e4be028a1e72bd67a9fe69b64a3dbb8e.tar.gz
group-892d5953e4be028a1e72bd67a9fe69b64a3dbb8e.tar.bz2
Use window parameter.
Minor cleanups.
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/selection.c b/selection.c
index b010f08..4a91351 100644
--- a/selection.c
+++ b/selection.c
@@ -259,9 +259,11 @@ groupSelectSingle (CompDisplay *d,
CompOption *option,
int nOption)
{
+ Window xid;
CompWindow *w;
- w = findWindowAtDisplay (d, d->activeWindow);
+ xid = getIntOptionNamed (option, nOption, "window", 0);
+ w = findWindowAtDisplay (d, xid);
if (w)
groupSelectWindow (w);
@@ -279,9 +281,11 @@ groupSelect (CompDisplay *d,
CompOption *option,
int nOption)
{
+ Window xid;
CompWindow *w;
- w = findWindowAtDisplay (d, d->activeWindow);
+ xid = getIntOptionNamed (option, nOption, "window", 0);
+ w = findWindowAtDisplay (d, xid);
if (w)
{
GROUP_SCREEN (w->screen);