Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27902d3
)
Fix input focus not being set in max_stack mode on new mapped windows.
author
Reginald Kennedy
<rk@rejii.com>
Tue, 5 Jun 2012 15:52:38 +0000
(23:52 +0800)
committer
Reginald Kennedy
<rk@rejii.com>
Tue, 5 Jun 2012 16:04:14 +0000
(
00:04
+0800)
ok marco
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
4b1bcc8
..
b1fc3f0
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-1489,7
+1489,7
@@
bar_update(void)
if (stack_enabled)
stack = r->ws->stacker;
if (stack_enabled)
stack = r->ws->stacker;
- snprintf(loc, sizeof loc,
+ snprintf(loc, sizeof loc,
"%d:%d %s %s %s%s %s %s",
x++, r->ws->idx + 1, stack, ws, s, cn,
bar_ext, bar_vertext);
"%d:%d %s %s %s%s %s %s",
x++, r->ws->idx + 1, stack, ws, s, cn,
bar_ext, bar_vertext);
@@
-6439,6
+6439,13
@@
mapnotify(XEvent *e)
win = manage_window(ev->window);
if (win)
set_win_state(win, NormalState);
win = manage_window(ev->window);
if (win)
set_win_state(win, NormalState);
+
+ /*
+ * focus_win can only set input focus on a mapped window.
+ * make sure the window really has focus since it is just being mapped.
+ */
+ if (win->ws->focus == win)
+ focus_win(win);
}
void
}
void