]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Chase wlroots X11 hints update
authorJohan Malm <jgm323@gmail.com>
Wed, 20 Apr 2022 17:48:49 +0000 (18:48 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 20 Apr 2022 17:48:49 +0000 (18:48 +0100)
meson.build
src/view.c
subprojects/wlroots.wrap

index 7aea92b2a5c825ac3f49fd323610811fa1bc7714..9cd11810c791aded5734d89f92b13080f2fbce56 100644 (file)
@@ -57,6 +57,7 @@ wayland_server = dependency('wayland-server', version: '>=1.19.0')
 wayland_protos = dependency('wayland-protocols')
 xkbcommon = dependency('xkbcommon')
 xcb = dependency('xcb', required: get_option('xwayland'))
+xcb_icccm = dependency('xcb-icccm', required: get_option('xwayland'))
 drm_full = dependency('libdrm')
 drm = drm_full.partial_dependency(compile_args: true, includes: true)
 xml2 = dependency('libxml-2.0')
@@ -83,6 +84,7 @@ labwc_deps = [
   wayland_server,
   wlroots,
   xkbcommon,
+  xcb_icccm,
   xml2,
   glib,
   cairo,
index 6b003ac87b58c0aca017d45d65188979235536da..ead0dc985753959600fc48165f50232cdff7c983 100644 (file)
@@ -2,6 +2,7 @@
 #include <assert.h>
 #include <stdio.h>
 #include <strings.h>
+#include <xcb/xcb_icccm.h>
 #include "labwc.h"
 #include "ssd.h"
 
@@ -72,8 +73,8 @@ view_adjust_size(struct view *view, int *w, int *h)
        int min_height = MIN_VIEW_HEIGHT;
 #if HAVE_XWAYLAND
        if (view->type == LAB_XWAYLAND_VIEW) {
-               struct wlr_xwayland_surface_size_hints *hints =
-                       view->xwayland_surface->size_hints;
+               xcb_size_hints_t *hints = view->xwayland_surface->size_hints;
+
                /*
                 * Honor size increments from WM_SIZE_HINTS. Typically, X11
                 * terminal emulators will use WM_SIZE_HINTS to make sure that
index e7273bb24beab03ac6768faa77505434b588f54d..3507ea524c8d9ee15772504738b3ec15e8ea981f 100644 (file)
@@ -1,3 +1,3 @@
 [wrap-git]
 url = https://gitlab.freedesktop.org/wlroots/wlroots.git
-revision = 2e14bed9
+revision = 640f3b9f2156a007c5d1a36afdee570e123c95e4