]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent setting user time if the WM doesn't support it
authorPo Lu <luangruo@yahoo.com>
Mon, 11 Jul 2022 10:48:12 +0000 (18:48 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 11 Jul 2022 10:48:37 +0000 (18:48 +0800)
* src/xterm.c (x_update_frame_user_time_window): Don't set
_NET_WM_USER_TIME if it's not supported by the window manager.

src/xterm.c

index 39ce415472ab52f73100f5229f54709799bc2fbd..2b83efb2288c0ea551b52a732f52e2657ec1d98e 100644 (file)
@@ -7117,7 +7117,8 @@ x_update_frame_user_time_window (struct frame *f)
   output = FRAME_X_OUTPUT (f);
   dpyinfo = FRAME_DISPLAY_INFO (f);
 
-  if (!NILP (Vx_no_window_manager))
+  if (!NILP (Vx_no_window_manager)
+      || !x_wm_supports (f, dpyinfo->Xatom_net_wm_user_time))
     {
       if (output->user_time_window != None
          && output->user_time_window != FRAME_OUTER_WINDOW (f))