diff options
| author | Po Lu | 2022-03-19 09:11:09 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-19 09:29:08 +0800 |
| commit | 1467b04f5cf586c0f44b7df00591986fa8d40c66 (patch) | |
| tree | ec88708c7d6413162416fbc0941e9f09f75fe380 /src/xterm.h | |
| parent | ae9a0b78080d8c448e3949b257c55c5288d05529 (diff) | |
| download | emacs-1467b04f5cf586c0f44b7df00591986fa8d40c66.tar.gz emacs-1467b04f5cf586c0f44b7df00591986fa8d40c66.zip | |
Handle composite overlay window during drag and drop sessions
* configure.ac: Test for the composite extension and use it if
available.
* msdos/sed1v2.inp: Update.
* src/Makefile.in (XCOMPOSITE_LIBS, XCOMPOSITE_CFLAGS): New
variables.
(EMACS_CFLAGS, LIBES): Add new libs and cflags.
* src/xterm.c (x_dnd_get_target_window): Look for proxy on
composite overlay window if mapped.
(x_term_init): Test if the composite extension is available.
* src/xterm.h (struct x_display_info): New fields for composite
extension presence.
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h index 9665e92a9fb..05d5e08dc01 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -429,6 +429,9 @@ struct x_display_info | |||
| 429 | /* Atom used in XEmbed client messages. */ | 429 | /* Atom used in XEmbed client messages. */ |
| 430 | Atom Xatom_XEMBED, Xatom_XEMBED_INFO; | 430 | Atom Xatom_XEMBED, Xatom_XEMBED_INFO; |
| 431 | 431 | ||
| 432 | /* Atom used to determine whether or not the screen is composited. */ | ||
| 433 | Atom Xatom_NET_WM_CM_Sn; | ||
| 434 | |||
| 432 | /* The frame (if any) which has the X window that has keyboard focus. | 435 | /* The frame (if any) which has the X window that has keyboard focus. |
| 433 | Zero if none. This is examined by Ffocus_frame in xfns.c. Note | 436 | Zero if none. This is examined by Ffocus_frame in xfns.c. Note |
| 434 | that a mere EnterNotify event can set this; if you need to know the | 437 | that a mere EnterNotify event can set this; if you need to know the |
| @@ -635,6 +638,12 @@ struct x_display_info | |||
| 635 | #ifdef HAVE_XINERAMA | 638 | #ifdef HAVE_XINERAMA |
| 636 | bool xinerama_supported_p; | 639 | bool xinerama_supported_p; |
| 637 | #endif | 640 | #endif |
| 641 | |||
| 642 | #ifdef HAVE_XCOMPOSITE | ||
| 643 | bool composite_supported_p; | ||
| 644 | int composite_major; | ||
| 645 | int composite_minor; | ||
| 646 | #endif | ||
| 638 | }; | 647 | }; |
| 639 | 648 | ||
| 640 | #ifdef HAVE_X_I18N | 649 | #ifdef HAVE_X_I18N |