]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xdg-popup: extend damage
authorJohan Malm <jgm323@gmail.com>
Wed, 3 Mar 2021 20:51:19 +0000 (20:51 +0000)
committerJohan Malm <jgm323@gmail.com>
Wed, 3 Mar 2021 20:51:19 +0000 (20:51 +0000)
src/xdg-popup.c

index c1a50efd2eadbea24129f07048ab2b47ef567d71..21ebd998873bd476b922699377901d9222505bec 100644 (file)
@@ -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