diff options
author | murray <murray.calavera@protonmail.com> | 2019-06-13 22:15:54 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-06-22 12:16:32 +0300 |
commit | b59139c2394a1da5da7453611d2f791ec285b43c (patch) | |
tree | 6bfe246025f7138a7a4aa77ffab223bd5e8e3e9d /sway | |
parent | d0d01810f3590f8132c3b81bd9775f337cfd0507 (diff) |
use surface coordinates for damaging buffers
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/output.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index bf5b284b..fe50759a 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -163,12 +163,12 @@ void output_view_for_each_surface(struct sway_output *output, .user_iterator = iterator, .user_data = user_data, .output = output, - .ox = view->container->current.content_x - output->lx + .ox = view->container->surface_x - output->lx - view->geometry.x, - .oy = view->container->current.content_y - output->ly + .oy = view->container->surface_y - output->ly - view->geometry.y, - .width = view->container->current.content_width, - .height = view->container->current.content_height, + .width = view->container->surface_width, + .height = view->container->surface_height, .rotation = 0, // TODO }; @@ -182,12 +182,12 @@ void output_view_for_each_popup(struct sway_output *output, .user_iterator = iterator, .user_data = user_data, .output = output, - .ox = view->container->current.content_x - output->lx + .ox = view->container->surface_x - output->lx - view->geometry.x, - .oy = view->container->current.content_y - output->ly + .oy = view->container->surface_y - output->ly - view->geometry.y, - .width = view->container->current.content_width, - .height = view->container->current.content_height, + .width = view->container->surface_width, + .height = view->container->surface_height, .rotation = 0, // TODO }; |