set _NET_WM_USER_TIME on the window
[dana/urxvt.git] / src / rxvttoolkit.C
index 77c908f..c52c954 100644 (file)
@@ -62,6 +62,7 @@ const char *const xa_names[] =
   "_NET_WM_ICON_NAME",
   "_NET_WM_PING",
   "_NET_WM_ICON",
+  "_NET_WM_USER_TIME",
 #endif
 #if USE_XIM
   "WM_LOCALE_NAME",
@@ -466,7 +467,7 @@ bool rxvt_display::ref_init ()
 
   int fd = XConnectionNumber (dpy);
 
-  // try to detect wether we have a local connection.
+  // try to detect whether we have a local connection.
   // assume unix domain socket == local, everything else not
   // TODO: might want to check for inet/127.0.0.1
   is_local = 0;
@@ -490,7 +491,7 @@ bool rxvt_display::ref_init ()
 void
 rxvt_display::ref_next ()
 {
-  // TODO: somehow check wether the database files/resources changed
+  // TODO: somehow check whether the database files/resources changed
   // before affording re-loading/parsing
   XrmDestroyDatabase (XrmGetDatabase (dpy));
   XrmSetDatabase (dpy, get_resources (true));
@@ -609,8 +610,9 @@ void rxvt_display::set_selection_owner (rxvt_term *owner, bool clipboard)
 
   if (cur_owner && cur_owner != owner)
     {
-      cur_owner->selection_clear (clipboard);
-      cur_owner->flush ();
+      rxvt_term *term = cur_owner;
+      term->selection_clear (clipboard);
+      term->flush ();
     }
 
   cur_owner = owner;