projects
/
dana
/
urxvt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set _NET_WM_USER_TIME on the window
[dana/urxvt.git]
/
src
/
command.C
diff --git
a/src/command.C
b/src/command.C
index
52924d4
..
78fa3b5
100644
(file)
--- a/
src/command.C
+++ b/
src/command.C
@@
-402,6
+402,13
@@
map_function_key (KeySym keysym)
}
void
}
void
+rxvt_term::update_user_time (Time time)
+{
+ XChangeProperty (dpy, parent[0], xa[XA_NET_WM_USER_TIME], XA_CARDINAL,
+ 32, PropModeReplace, (unsigned char*)&time, 1);
+}
+
+void
rxvt_term::key_press (XKeyEvent &ev)
{
int ctrl, meta, shft, len;
rxvt_term::key_press (XKeyEvent &ev)
{
int ctrl, meta, shft, len;
@@
-1362,6
+1369,7
@@
rxvt_term::x_cb (XEvent &ev)
switch (ev.type)
{
case KeyPress:
switch (ev.type)
{
case KeyPress:
+ update_user_time (ev.xkey.time);
key_press (ev.xkey);
break;
key_press (ev.xkey);
break;
@@
-1370,6
+1378,7
@@
rxvt_term::x_cb (XEvent &ev)
break;
case ButtonPress:
break;
case ButtonPress:
+ update_user_time (ev.xbutton.time);
button_press (ev.xbutton);
break;
button_press (ev.xbutton);
break;