]> git.eshelyaron.com Git - emacs.git/commit
Take window shapes into account when processing drag and drop
authorPo Lu <luangruo@yahoo.com>
Fri, 25 Mar 2022 08:15:57 +0000 (16:15 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 25 Mar 2022 08:22:45 +0000 (16:22 +0800)
commitf38bdb0327c5806286ab97687e2823d65d8e184a
tree493dca067c6c4267959cfa26097f6c59f0bdf113
parent9d2dcd184125320014aee9cfa5dd72ebab107778
Take window shapes into account when processing drag and drop

* configure.ac: Test for the Nonrectangular Window Shape
extension.
* msdos/sed1v2.inp: Update.
* src/xterm.c (struct x_client_list_window): New fields for
shapes.
(x_dnd_free_toplevels): Free shapes.
(x_dnd_compute_toplevels): Populate window shapes.
(x_dnd_get_target_window_2): New function.
(x_dnd_get_target_window_1): Test WM state of window before
taking it into account.
(x_dnd_begin_drag_and_drop): Use outer window as the initial
last seen window.
(x_dnd_update_state): Small fixes to frame tracking.
(handle_one_xevent): Handle ShapeNotify events correctly.
(x_term_init): Test for the Nonrectangular Window Shape
extension.
* src/xterm.h (struct x_display_info): New atom `WM_STATE'.
configure.ac
msdos/sed1v2.inp
src/xterm.c
src/xterm.h