From badbeb29362b7f379d219cd4d340a568973518f7 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 3 Mar 2021 20:51:19 +0000 Subject: [PATCH] xdg-popup: extend damage --- src/xdg-popup.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/xdg-popup.c b/src/xdg-popup.c index c1a50efd..21ebd998 100644 --- a/src/xdg-popup.c +++ b/src/xdg-popup.c @@ -1,6 +1,9 @@ /* * Copyright (C) 2020 the sway authors - * This file is only needed in support of tracking damage + * + * This file is only needed in support of + * - tracking damage + * - unconstraining XDG popups */ #include "labwc.h" @@ -24,14 +27,14 @@ 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_child.parent); + damage_all_outputs(popup->view_child.parent->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_child.parent); + damage_all_outputs(popup->view_child.parent->server); } static void