mirror of
https://github.com/labwc/labwc.git
synced 2026-03-09 05:33:53 -04:00
xdg.c: damage outside view for popups
This commit is contained in:
parent
855f21b1b3
commit
011f20ef6b
1 changed files with 3 additions and 2 deletions
|
|
@ -63,14 +63,15 @@ static void
|
||||||
handle_xdg_popup_map(struct wl_listener *listener, void *data)
|
handle_xdg_popup_map(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
struct xdg_popup *popup = wl_container_of(listener, popup, map);
|
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
|
static void
|
||||||
handle_xdg_popup_unmap(struct wl_listener *listener, void *data)
|
handle_xdg_popup_unmap(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
struct xdg_popup *popup = wl_container_of(listener, popup, unmap);
|
struct xdg_popup *popup = wl_container_of(listener, popup, unmap);
|
||||||
damage_view_whole(popup->view);
|
damage_all_outputs(popup->view->server);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue