commit ee64b7ee612b2edaf45339421eef478cd2f38dac
parent 1c1a5baff2808e8d27af1c630bd3c7f0842ec9d5
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 24 Apr 2019 21:47:15 -0400
Set all views as tiled on four sides
So that they behave nicely when we go to render borders later
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/view.c b/view.c
@@ -1,12 +1,15 @@
#include <stdlib.h>
#include <wayland-server.h>
#include <wlr/types/wlr_xdg_shell.h>
+#include "xdg-shell-protocol.h"
#include "server.h"
#include "view.h"
static void xdg_surface_map(struct wl_listener *listener, void *data) {
struct wio_view *view = wl_container_of(listener, view, map);
wio_view_focus(view, view->xdg_surface->surface);
+ wlr_xdg_toplevel_set_tiled(view->xdg_surface,
+ WLR_EDGE_LEFT | WLR_EDGE_RIGHT | WLR_EDGE_TOP | WLR_EDGE_BOTTOM);
}
static void xdg_surface_destroy(struct wl_listener *listener, void *data) {