summaryrefslogtreecommitdiff
path: root/src/xterm.h
diff options
context:
space:
mode:
authorMarcin Borkowski <mbork@mbork.pl>2017-12-07 14:24:57 +0100
committerMarcin Borkowski <mbork@mbork.pl>2017-12-07 14:24:57 +0100
commit0e3c10ce34c84d24013a84a725c6275ad87b1530 (patch)
treec37c89b1087a00e4d4799e6f4123c48ffca30270 /src/xterm.h
parentab5fc7c8215e1066449da4eb0e027f8250cc9f49 (diff)
parentd4db37b283daffa0f8c942a5b526b6444edc34c5 (diff)
downloademacs-0e3c10ce34c84d24013a84a725c6275ad87b1530.tar.gz
Merge branch 'master' into fix/bug-20871
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h31
1 files changed, 23 insertions, 8 deletions
diff --git a/src/xterm.h b/src/xterm.h
index a75257006fd..7ab20ba06c6 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -15,7 +15,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
+along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#ifndef XTERM_H
#define XTERM_H
@@ -48,12 +48,6 @@ typedef Widget xt_or_gtk_widget;
#ifdef USE_GTK
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
-
-/* Some definitions to reduce conditionals. */
-typedef GtkWidget *xt_or_gtk_widget;
-#undef XSync
-#define XSync(d, b) do { gdk_window_process_all_updates (); \
- XSync (d, b); } while (false)
#endif /* USE_GTK */
/* True iff GTK's version is at least I.J.K. */
@@ -69,6 +63,19 @@ typedef GtkWidget *xt_or_gtk_widget;
# endif
#endif
+#ifdef USE_GTK
+/* Some definitions to reduce conditionals. */
+typedef GtkWidget *xt_or_gtk_widget;
+#undef XSync
+/* gdk_window_process_all_updates is deprecated in GDK 3.22. */
+#if GTK_CHECK_VERSION (3, 22, 0)
+#define XSync(d, b) do { XSync ((d), (b)); } while (false)
+#else
+#define XSync(d, b) do { gdk_window_process_all_updates (); \
+ XSync (d, b); } while (false)
+#endif
+#endif /* USE_GTK */
+
/* The GtkTooltip API came in 2.12, but gtk-enable-tooltips in 2.14. */
#if GTK_CHECK_VERSION (2, 14, 0)
#define USE_GTK_TOOLTIP
@@ -637,6 +644,14 @@ struct x_output
Cursor horizontal_drag_cursor;
Cursor vertical_drag_cursor;
Cursor current_cursor;
+ Cursor left_edge_cursor;
+ Cursor top_left_corner_cursor;
+ Cursor top_edge_cursor;
+ Cursor top_right_corner_cursor;
+ Cursor right_edge_cursor;
+ Cursor bottom_right_corner_cursor;
+ Cursor bottom_edge_cursor;
+ Cursor bottom_left_corner_cursor;
/* Window whose cursor is hourglass_cursor. This window is temporarily
mapped to display an hourglass cursor. */
@@ -872,7 +887,7 @@ extern void x_mark_frame_dirty (struct frame *f);
struct scroll_bar
{
/* These fields are shared by all vectors. */
- struct vectorlike_header header;
+ union vectorlike_header header;
/* The window we're a scroll bar for. */
Lisp_Object window;