wio

a wayland wm stylised after plan9 rio - forked from git.sr.ht/~srcmpwn/wio
git clone git://src.gearsix.net/wio
Log | Files | Refs | Atom | Submodules | README | LICENSE

commit 28df70ae74af542513772b994b5ab945e82f7a74
parent 08b22df90da20cf7f81bf98f434d9128d7cfd418
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Apr 2019 22:18:32 -0400

Fix FOUC with new wio views

Diffstat:
Mview.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/view.c b/view.c @@ -8,8 +8,6 @@ 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) { @@ -35,6 +33,9 @@ void server_new_xdg_surface(struct wl_listener *listener, void *data) { view->map.notify = xdg_surface_map; wl_signal_add(&xdg_surface->events.map, &view->map); + wlr_xdg_toplevel_set_tiled(view->xdg_surface, + WLR_EDGE_LEFT | WLR_EDGE_RIGHT | WLR_EDGE_TOP | WLR_EDGE_BOTTOM); + wl_list_insert(&server->views, &view->link); }