projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c258a47
)
new windows on non-visible workspaces should follow the same focus rules as those...
author
Dana Jansens
<danakj@orodu.net>
Sat, 20 Jul 2002 20:44:29 +0000
(20:44 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 20 Jul 2002 20:44:29 +0000
(20:44 +0000)
src/Workspace.cc
patch
|
blob
|
history
diff --git
a/src/Workspace.cc
b/src/Workspace.cc
index
26b48e4
..
0a95c24
100644
(file)
--- a/
src/Workspace.cc
+++ b/
src/Workspace.cc
@@
-91,6
+91,16
@@
void Workspace::addWindow(BlackboxWindow *w, bool place) {
clientmenu->update();
screen->updateNetizenWindowAdd(w->getClientWindow(), id);
+
+ if (id != screen->getCurrentWorkspaceID() &&
+ screen->doFocusNew()) {
+ /*
+ not on the focused workspace, so the window is not going to get focus
+ but if the user wants new windows focused, then it should get focus
+ when this workspace does become focused.
+ */
+ lastfocus = w;
+ }
}
if (! w->isDesktop())