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:
52e931e
)
Fix issue where _NET_ACTIVE_WINDOW is ignored on unmanaged windows.
author
Reginald Kennedy
<rk@rejii.com>
Mon, 16 Jul 2012 19:33:36 +0000
(
03:33
+0800)
committer
Reginald Kennedy
<rk@rejii.com>
Mon, 16 Jul 2012 20:04:31 +0000
(
04:04
+0800)
ok marco
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
2ff50af
..
5b97af2
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-6981,14
+6981,21
@@
visibilitynotify(XEvent *e)
void
clientmessage(XEvent *e)
{
void
clientmessage(XEvent *e)
{
- XClientMessageEvent *ev;
- struct ws_win *win;
+ XClientMessageEvent *ev;
+ struct ws_win *win;
ev = &e->xclient;
win = find_window(ev->window);
ev = &e->xclient;
win = find_window(ev->window);
- if (win == NULL)
+ if (win == NULL) {
+ if (ev->message_type == ewmh[_NET_ACTIVE_WINDOW].atom) {
+ DNPRINTF(SWM_D_EVENT, "clientmessage: request focus on "
+ "unmanaged window.\n");
+ e->xmaprequest.window = ev->window;
+ maprequest(e);
+ }
return;
return;
+ }
DNPRINTF(SWM_D_EVENT, "clientmessage: window: 0x%lx, type: %ld\n",
ev->window, ev->message_type);
DNPRINTF(SWM_D_EVENT, "clientmessage: window: 0x%lx, type: %ld\n",
ev->window, ev->message_type);