diff options
author | kristian <kristian@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-02-07 14:29:38 +0000 |
---|---|---|
committer | kristian <kristian@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-02-07 14:29:38 +0000 |
commit | 819f8bbc2b69059b65dcc0607b080a75291220ad (patch) | |
tree | 5127f2305e8850d3c2741ef31a87eddafd505b3b /beryl-plugins | |
parent | 77eaf0af54c49f338daa4f57d55d8e0524021321 (diff) | |
download | marex-dev-819f8bbc2b69059b65dcc0607b080a75291220ad.tar.gz marex-dev-819f8bbc2b69059b65dcc0607b080a75291220ad.tar.bz2 |
core+plugins: Modify focusDefaultWindow() to take a screen argument.
Properly maintains focus on the same screen when rotating or closing
a window.
git-svn-id: file:///beryl/trunk@3768 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins')
-rw-r--r-- | beryl-plugins/src/put.c | 2 | ||||
-rw-r--r-- | beryl-plugins/src/rotate.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/beryl-plugins/src/put.c b/beryl-plugins/src/put.c index 57cc94b..d86f441 100644 --- a/beryl-plugins/src/put.c +++ b/beryl-plugins/src/put.c @@ -549,7 +549,7 @@ static void putPreparePaintScreen(CompScreen * s, int msSinceLastPaint) { /* unfocus moved window if enabled */ if (ps->unfocusWindow) - focusDefaultWindow(s->display); + focusDefaultWindow(s); break; } } diff --git a/beryl-plugins/src/rotate.c b/beryl-plugins/src/rotate.c index e523960..0bb7b33 100644 --- a/beryl-plugins/src/rotate.c +++ b/beryl-plugins/src/rotate.c @@ -791,7 +791,7 @@ static void rotatePreparePaintScreen(CompScreen * s, int msSinceLastPaint) } } else - focusDefaultWindow(s->display); + focusDefaultWindow(s); rs->moveWindow = 0; } |