aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-07-29 23:00:20 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-07-29 23:00:20 +0200
commita5bc958facd9e93aec1cae6bb341cc8026b432c2 (patch)
treee4b9375f37a39ae695f8b1f50fb6fed20d1e7c22
parent6d390e62ff2afecfab8797ab235826e89e089f0a (diff)
downloadsynthpod-a5bc958facd9e93aec1cae6bb341cc8026b432c2.tar.xz
sbox: re-add quirk for invalid zyn fusion size hints.
-rw-r--r--VERSION2
-rw-r--r--bin/synthpod_sandbox_x11.c10
2 files changed, 10 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index 04462b7c..11eb263d 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.6047
+0.1.6049
diff --git a/bin/synthpod_sandbox_x11.c b/bin/synthpod_sandbox_x11.c
index 819030db..3075ee50 100644
--- a/bin/synthpod_sandbox_x11.c
+++ b/bin/synthpod_sandbox_x11.c
@@ -88,7 +88,7 @@ _clone_size_hints(app_t *app)
xcb_icccm_get_wm_size_hints_reply(app->conn, reply, &size_hints, NULL);
#if 0
- fprintf(stderr, "%u, (%i, %i), (%i, %i), (%i, %i), (%i, %i), (%i, %i), (%i, %i), (%i, %i), (%i, %i), %u\n",
+ fprintf(stdout, "%u, (%i, %i), (%i, %i), (%i, %i), (%i, %i), (%i, %i), (%i, %i), (%i, %i), (%i, %i), %u\n",
size_hints.flags,
size_hints.x, size_hints.y,
size_hints.width, size_hints.height,
@@ -101,6 +101,14 @@ _clone_size_hints(app_t *app)
size_hints.win_gravity);
#endif
+ // quirk for invalid min/max size hints reported by e.g. zyn
+ if( (size_hints.flags & (XCB_ICCCM_SIZE_HINT_P_MIN_SIZE | XCB_ICCCM_SIZE_HINT_P_MAX_SIZE) )
+ && (size_hints.min_width == 1) && (size_hints.min_height == 1)
+ && (size_hints.max_width == 1) && (size_hints.max_height == 1) )
+ {
+ return;
+ }
+
xcb_icccm_set_wm_size_hints(app->conn, app->win, XCB_ATOM_WM_NORMAL_HINTS, &size_hints);
xcb_flush(app->conn);
}