diff options
author | Simon Tatham <anakin@pobox.com> | 2022-10-22 09:46:44 +0300 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2022-10-22 09:48:56 +0300 |
commit | d2795e5cb5242f84f7279d9b58d5e3108f394102 (patch) | |
tree | a7b858b9caeada363dcf616884b78f464fb53495 | |
parent | 75ac444324fa49de669b88be7fbec17d4ae48eaa (diff) |
Fix build with GTK3 prior to 3.22.23.
Those versions of GTK (or rather, GDK) don't support the
GDK_WINDOW_STATE_TOP_TILED constants; they only support the
non-directional GDK_WINDOW_STATE_TILED. And GTK < 3.10.0 doesn't even
support that.
All those constants were under #ifdef already; I've just made the
ifdefs a bit more precise.
-rw-r--r-- | unix/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/window.c b/unix/window.c index 1958edde..18cce475 100644 --- a/unix/window.c +++ b/unix/window.c @@ -2557,8 +2557,10 @@ static void request_resize_internal(GtkFrontend *inst, bool from_terminal, GdkWindowState state = gdk_window_get_state(gdkwin); if (state & (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN | -#if GTK_CHECK_VERSION(3,0,0) +#if GTK_CHECK_VERSION(3,10,0) GDK_WINDOW_STATE_TILED | +#endif +#if GTK_CHECK_VERSION(3,22,23) GDK_WINDOW_STATE_TOP_TILED | GDK_WINDOW_STATE_RIGHT_TILED | GDK_WINDOW_STATE_BOTTOM_TILED | |