mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
xdg-popup: extend damage
This commit is contained in:
parent
35fe890572
commit
badbeb2936
1 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020 the sway authors
|
* 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"
|
#include "labwc.h"
|
||||||
|
|
@ -24,14 +27,14 @@ 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_child.parent);
|
damage_all_outputs(popup->view_child.parent->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_child.parent);
|
damage_all_outputs(popup->view_child.parent->server);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue