diff options
| author | Po Lu | 2022-07-10 10:49:46 +0800 |
|---|---|---|
| committer | Po Lu | 2022-07-10 10:49:46 +0800 |
| commit | 932cf200bb607ed7fdcef82ef3c0f1d1c1bd7c3b (patch) | |
| tree | 06ec83c94d1c40b6beaad408789d4ae65fba827c /src | |
| parent | 588feeecfd8e4d20e1b4bc7cbb0dea2422026105 (diff) | |
| download | emacs-932cf200bb607ed7fdcef82ef3c0f1d1c1bd7c3b.tar.gz emacs-932cf200bb607ed7fdcef82ef3c0f1d1c1bd7c3b.zip | |
Make `x-no-window-manager' cover user time as well
* src/xterm.c (x_update_frame_user_time_window):
(x_wm_supports_1): Respect `x-no-window-manager'. This makes
testing some features easier.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index e10edbad3a9..4e2d977e60f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7113,6 +7113,23 @@ x_update_frame_user_time_window (struct frame *f) | |||
| 7113 | output = FRAME_X_OUTPUT (f); | 7113 | output = FRAME_X_OUTPUT (f); |
| 7114 | dpyinfo = FRAME_DISPLAY_INFO (f); | 7114 | dpyinfo = FRAME_DISPLAY_INFO (f); |
| 7115 | 7115 | ||
| 7116 | if (!NILP (Vx_no_window_manager)) | ||
| 7117 | { | ||
| 7118 | if (output->user_time_window != None | ||
| 7119 | && output->user_time_window != FRAME_OUTER_WINDOW (f)) | ||
| 7120 | { | ||
| 7121 | XDestroyWindow (dpyinfo->display, output->user_time_window); | ||
| 7122 | XDeleteProperty (dpyinfo->display, FRAME_OUTER_WINDOW (f), | ||
| 7123 | dpyinfo->Xatom_net_wm_user_time_window); | ||
| 7124 | } | ||
| 7125 | else | ||
| 7126 | XDeleteProperty (dpyinfo->display, FRAME_OUTER_WINDOW (f), | ||
| 7127 | dpyinfo->Xatom_net_wm_user_time); | ||
| 7128 | |||
| 7129 | output->user_time_window = None; | ||
| 7130 | return; | ||
| 7131 | } | ||
| 7132 | |||
| 7116 | if (!x_wm_supports (f, dpyinfo->Xatom_net_wm_user_time_window)) | 7133 | if (!x_wm_supports (f, dpyinfo->Xatom_net_wm_user_time_window)) |
| 7117 | { | 7134 | { |
| 7118 | if (output->user_time_window == None) | 7135 | if (output->user_time_window == None) |
| @@ -24115,6 +24132,11 @@ x_wm_supports_1 (struct x_display_info *dpyinfo, Atom want_atom) | |||
| 24115 | unsigned char *tmp_data = NULL; | 24132 | unsigned char *tmp_data = NULL; |
| 24116 | Atom target_type = XA_WINDOW; | 24133 | Atom target_type = XA_WINDOW; |
| 24117 | 24134 | ||
| 24135 | /* The user says there's no window manager, so take him up on | ||
| 24136 | it. */ | ||
| 24137 | if (!NILP (Vx_no_window_manager)) | ||
| 24138 | return false; | ||
| 24139 | |||
| 24118 | block_input (); | 24140 | block_input (); |
| 24119 | 24141 | ||
| 24120 | x_catch_errors (dpy); | 24142 | x_catch_errors (dpy); |