aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bowes <keithbowes@users.noreply.github.com>2019-06-16 19:42:16 -0400
committerKeith Bowes <keithbowes@users.noreply.github.com>2019-06-19 16:36:40 -0400
commita94ccb8ea25295c950f9506cdccf23caac485bd8 (patch)
treeedfdf512f9331499d1dd02081388174e6387001c
parent8e1f75f47cde42586138ee207b86a2d2265ba65b (diff)
downloadwterm-a94ccb8ea25295c950f9506cdccf23caac485bd8.zip
wterm-a94ccb8ea25295c950f9506cdccf23caac485bd8.tar.gz
wterm-a94ccb8ea25295c950f9506cdccf23caac485bd8.tar.bz2
Support for xdg-shell-unstable-v6 (for compatibility with older compositors still floating around)
-rw-r--r--src/wterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wterm.c b/src/wterm.c
index 18d279f..c655722 100644
--- a/src/wterm.c
+++ b/src/wterm.c
@@ -3458,8 +3458,8 @@ void regglobal(void *data, struct wl_registry *registry, uint32_t name,
if (strcmp(interface, "wl_compositor") == 0) {
wl.cmp = wl_registry_bind(registry, name, &wl_compositor_interface, 3);
- } else if (strcmp(interface, "xdg_wm_base") == 0) {
- // printf("init wm_base\n");
+ } else if (strcmp(interface, "xdg_wm_base") == 0 || strcmp(interface, "zxdg_shell_v6") == 0) {
+ // printf("init xdg_wm_base\n");
wl.xdgshell =
wl_registry_bind(registry, name, &xdg_wm_base_interface, 1);
xdg_wm_base_add_listener(wl.xdgshell, &base_listener, NULL);