mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-25 22:50:37 -08:00
Remove some redundant checks in the DND code
* src/xterm.c (handle_one_xevent): Don't check tab_bar_p or tool_bar_p before clearing last items during drag-and-drop.
This commit is contained in:
parent
d04701c0c4
commit
06cec5ee0b
1 changed files with 5 additions and 4 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue