[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9b661ff1a8: Fix warnings outside XI2 builds
From: |
Po Lu |
Subject: |
master 9b661ff1a8: Fix warnings outside XI2 builds |
Date: |
Sun, 7 Aug 2022 23:59:55 -0400 (EDT) |
branch: master
commit 9b661ff1a8e0fc3fc809a42a187356d6cb5ad2c9
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix warnings outside XI2 builds
* src/xterm.c (x_query_pointer): Juggle some definitions around.
---
src/xterm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index c1f74f6866..23a35aa161 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -13091,10 +13091,10 @@ x_query_pointer (Display *dpy, Window w, Window
*root_return,
int *root_y_return, int *win_x_return,
int *win_y_return, unsigned int *mask_return)
{
- struct x_display_info *dpyinfo;
Bool rc;
- bool had_errors;
#ifdef HAVE_XINPUT2
+ struct x_display_info *dpyinfo;
+ bool had_errors;
XIModifierState modifiers;
XIButtonState buttons;
XIGroupState group; /* Unused. */
@@ -13102,8 +13102,8 @@ x_query_pointer (Display *dpy, Window w, Window
*root_return,
unsigned int state;
#endif
- dpyinfo = x_display_info_for_display (dpy);
#ifdef HAVE_XINPUT2
+ dpyinfo = x_display_info_for_display (dpy);
if (dpyinfo && dpyinfo->client_pointer_device != -1)
{
/* Catch errors caused by the device going away. This is not
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9b661ff1a8: Fix warnings outside XI2 builds,
Po Lu <=