diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-17 11:04:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-17 11:04:34 -0500 |
commit | eda3bfeed5097c71634332bfe998188b028abf02 (patch) | |
tree | a5fb241142cf6815a8fce76eb9b5faf101d69ff9 /sway/desktop/desktop.c | |
parent | a5cdc293dc8ae6759bd627aaf60d35d9eb4efb04 (diff) | |
parent | be9348d25c9556bdabb83d964a8761f920fc4a11 (diff) |
Merge pull request #3142 from RyanDwyer/move-view-properties
Move view {x,y,width,height} into container struct
Diffstat (limited to 'sway/desktop/desktop.c')
-rw-r--r-- | sway/desktop/desktop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/desktop.c b/sway/desktop/desktop.c index 771b58fe..d8dd0240 100644 --- a/sway/desktop/desktop.c +++ b/sway/desktop/desktop.c @@ -28,8 +28,8 @@ void desktop_damage_box(struct wlr_box *box) { void desktop_damage_view(struct sway_view *view) { desktop_damage_whole_container(view->container); struct wlr_box box = { - .x = view->container->current.view_x - view->geometry.x, - .y = view->container->current.view_y - view->geometry.y, + .x = view->container->current.content_x - view->geometry.x, + .y = view->container->current.content_y - view->geometry.y, .width = view->surface->current.width, .height = view->surface->current.height, }; |