diff options
| -rw-r--r-- | src/xfns.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c index bfb61c1205e..baa643bde07 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2402,7 +2402,7 @@ append_wm_protocols (struct x_display_info *dpyinfo, | |||
| 2402 | if (!found_wm_ping) | 2402 | if (!found_wm_ping) |
| 2403 | protos[num_protos++] = dpyinfo->Xatom_net_wm_ping; | 2403 | protos[num_protos++] = dpyinfo->Xatom_net_wm_ping; |
| 2404 | #if !defined HAVE_GTK3 && defined HAVE_XSYNC | 2404 | #if !defined HAVE_GTK3 && defined HAVE_XSYNC |
| 2405 | if (!found_wm_sync_request) | 2405 | if (!found_wm_sync_request && dpyinfo->xsync_supported_p) |
| 2406 | protos[num_protos++] = dpyinfo->Xatom_net_wm_sync_request; | 2406 | protos[num_protos++] = dpyinfo->Xatom_net_wm_sync_request; |
| 2407 | #endif | 2407 | #endif |
| 2408 | 2408 | ||
diff --git a/src/xterm.c b/src/xterm.c index 4b4eae53be5..0d0a08d078b 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9103,7 +9103,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 9103 | 9103 | ||
| 9104 | #if defined HAVE_XSYNC && !defined HAVE_GTK3 | 9104 | #if defined HAVE_XSYNC && !defined HAVE_GTK3 |
| 9105 | if (event->xclient.data.l[0] == dpyinfo->Xatom_net_wm_sync_request | 9105 | if (event->xclient.data.l[0] == dpyinfo->Xatom_net_wm_sync_request |
| 9106 | && event->xclient.format == 32) | 9106 | && event->xclient.format == 32 |
| 9107 | && dpyinfo->xsync_supported_p) | ||
| 9107 | { | 9108 | { |
| 9108 | struct frame *f | 9109 | struct frame *f |
| 9109 | = x_top_window_to_frame (dpyinfo, | 9110 | = x_top_window_to_frame (dpyinfo, |
| @@ -14784,7 +14785,7 @@ x_free_frame_resources (struct frame *f) | |||
| 14784 | #endif /* !USE_X_TOOLKIT */ | 14785 | #endif /* !USE_X_TOOLKIT */ |
| 14785 | 14786 | ||
| 14786 | #ifdef HAVE_XSYNC | 14787 | #ifdef HAVE_XSYNC |
| 14787 | if (FRAME_X_BASIC_COUNTER (f)) | 14788 | if (FRAME_X_BASIC_COUNTER (f) != None) |
| 14788 | XSyncDestroyCounter (FRAME_X_DISPLAY (f), | 14789 | XSyncDestroyCounter (FRAME_X_DISPLAY (f), |
| 14789 | FRAME_X_BASIC_COUNTER (f)); | 14790 | FRAME_X_BASIC_COUNTER (f)); |
| 14790 | #endif | 14791 | #endif |