xdg.c: damage outside view for popups

This commit is contained in:
Johan Malm 2021-02-17 20:42:50 +00:00
parent 855f21b1b3
commit 011f20ef6b

View file

@ -63,14 +63,15 @@ static void
handle_xdg_popup_map(struct wl_listener *listener, void *data)
{
struct xdg_popup *popup = wl_container_of(listener, popup, map);
damage_view_whole(popup->view);
/* damagage whole output here as popup might go outside view */
damage_all_outputs(popup->view->server);
}
static void
handle_xdg_popup_unmap(struct wl_listener *listener, void *data)
{
struct xdg_popup *popup = wl_container_of(listener, popup, unmap);
damage_view_whole(popup->view);
damage_all_outputs(popup->view->server);
}
static void