summaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-04-05 22:53:21 -0400
committerGitHub <[email protected]>2018-04-05 22:53:21 -0400
commitf63d9417cd4d25121fa1fd309acad14a7562a55c (patch)
treec46a070652793db69ec5d6c5258d0e6cf86c1231 /sway/desktop/output.c
parent268c68b41707a664e5059699c720f000f20e2276 (diff)
parent641807d920854fdecc1307bd809c198db1a7dff1 (diff)
Merge pull request #1743 from emersion/subsurface-damage-tracking
Damage tracking for view children
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 0e8a9485..aa18f1b8 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -267,17 +267,14 @@ static void render_output(struct sway_output *output, struct timespec *when,
// render unmanaged views on top
struct wl_list *unmanaged = &root_container.sway_root->xwayland_unmanaged;
- struct sway_xwayland_unmanaged *sway_surface;
- wl_list_for_each(sway_surface, unmanaged, link) {
+ struct sway_xwayland_unmanaged *unmanaged_surface;
+ wl_list_for_each(unmanaged_surface, unmanaged, link) {
struct wlr_xwayland_surface *xsurface =
- sway_surface->wlr_xwayland_surface;
- if (xsurface->surface == NULL) {
- continue;
- }
+ unmanaged_surface->wlr_xwayland_surface;
const struct wlr_box view_box = {
- .x = xsurface->x,
- .y = xsurface->y,
+ .x = unmanaged_surface->lx,
+ .y = unmanaged_surface->ly,
.width = xsurface->width,
.height = xsurface->height,
};
@@ -335,12 +332,24 @@ void output_damage_whole(struct sway_output *output) {
wlr_output_damage_add_whole(output->damage);
}
+void output_damage_whole_surface(struct sway_output *output,
+ double ox, double oy, struct wlr_surface *surface) {
+ // TODO
+ output_damage_whole(output);
+}
+
void output_damage_whole_view(struct sway_output *output,
struct sway_view *view) {
// TODO
output_damage_whole(output);
}
+void output_damage_whole_container(struct sway_output *output,
+ struct sway_container *con) {
+ // TODO
+ output_damage_whole(output);
+}
+
static void damage_handle_destroy(struct wl_listener *listener, void *data) {
struct sway_output *output =
wl_container_of(listener, output, damage_destroy);