]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some redundant checks in the DND code
authorPo Lu <luangruo@yahoo.com>
Tue, 26 Jul 2022 02:29:16 +0000 (10:29 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 26 Jul 2022 02:29:16 +0000 (10:29 +0800)
* src/xterm.c (handle_one_xevent): Don't check tab_bar_p or
tool_bar_p before clearing last items during drag-and-drop.

src/xterm.c

index e953f54d6da7f7f6c7a7b7f8bc2aef41992193da..6f8291b494bdbb093c5c3543644e57014457f1a9 100644 (file)
@@ -19062,10 +19062,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
 
                dpyinfo->grabbed |= (1 << event->xbutton.button);
                dpyinfo->last_mouse_frame = f;
-               if (f && !tab_bar_p)
+
+               if (f)
                  f->last_tab_bar_item = -1;
 #if ! defined (USE_GTK)
-               if (f && !tool_bar_p)
+               if (f)
                  f->last_tool_bar_item = -1;
 #endif /* not USE_GTK */
              }
@@ -20479,10 +20480,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                          if (device)
                            device->grab |= (1 << xev->detail);
 
-                         if (f && !tab_bar_p)
+                         if (f)
                            f->last_tab_bar_item = -1;
 #if ! defined (USE_GTK)
-                         if (f && !tool_bar_p)
+                         if (f)
                            f->last_tool_bar_item = -1;
 #endif /* not USE_GTK */
                        }