]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix thinko in recent commit
authorStefan Kangas <stefankangas@gmail.com>
Tue, 22 Apr 2025 03:53:35 +0000 (05:53 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Apr 2025 17:57:14 +0000 (19:57 +0200)
(cherry picked from commit 45e849bddc1c7777628d3f42557ddbd8a6ba96b7)

src/xterm.c

index 1884e780e343ffca87885d7e2fd3410a99e089d6..249916cf95452ed2750aeff4f973612df1c05628 100644 (file)
@@ -11971,10 +11971,10 @@ x_new_focus_frame (struct x_display_info *dpyinfo, struct frame *frame)
 {
   struct frame *old_focus = dpyinfo->x_focus_frame;
 #if defined USE_GTK && !defined HAVE_GTK3 && defined HAVE_XINPUT2
+  XIEventMask mask;
   if (dpyinfo->supports_xi2)
     {
       ptrdiff_t l = XIMaskLen (XI_LASTEVENT);
-      XIEventMask mask;
       mask.mask = alloca (l);
       mask.mask_len = l;
       memset (mask.mask, 0, l);