]> git.mdlowis.com Git - proto/labwc.git/commitdiff
server: remove wl_display_init_shm()
authorJohan Malm <jgm323@gmail.com>
Mon, 28 Jun 2021 19:42:41 +0000 (20:42 +0100)
committerJohan Malm <jgm323@gmail.com>
Mon, 28 Jun 2021 19:42:41 +0000 (20:42 +0100)
This function is called by wlroots in wlr_renderer_init_wl_display(), so
no need to call it again. This stops Qt apps segfaulting when run with
"-platform wayland"

Fixes issue #34 item 2

src/server.c

index 5daabea2cb59f19454afde4bde62c5f0075f8a1d..036ee7a62cc824b43b3e71c0d80bcadc48e485ab 100644 (file)
@@ -249,8 +249,6 @@ server_start(struct server *server)
                wlr_log(WLR_DEBUG, "WAYLAND_DISPLAY=%s", socket);
        }
 
-       wl_display_init_shm(server->wl_display);
-
 #if HAVE_XWAYLAND
        wlr_xwayland_set_seat(server->xwayland, server->seat.seat);
 #endif