diff options
-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, | |||
163 | .user_iterator = iterator, | 163 | .user_iterator = iterator, |
164 | .user_data = user_data, | 164 | .user_data = user_data, |
165 | .output = output, | 165 | .output = output, |
166 | .ox = view->container->current.content_x - output->lx | 166 | .ox = view->container->surface_x - output->lx |
167 | - view->geometry.x, | 167 | - view->geometry.x, |
168 | .oy = view->container->current.content_y - output->ly | 168 | .oy = view->container->surface_y - output->ly |
169 | - view->geometry.y, | 169 | - view->geometry.y, |
170 | .width = view->container->current.content_width, | 170 | .width = view->container->surface_width, |
171 | .height = view->container->current.content_height, | 171 | .height = view->container->surface_height, |
172 | .rotation = 0, // TODO | 172 | .rotation = 0, // TODO |
173 | }; | 173 | }; |
174 | 174 | ||
@@ -182,12 +182,12 @@ void output_view_for_each_popup(struct sway_output *output, | |||
182 | .user_iterator = iterator, | 182 | .user_iterator = iterator, |
183 | .user_data = user_data, | 183 | .user_data = user_data, |
184 | .output = output, | 184 | .output = output, |
185 | .ox = view->container->current.content_x - output->lx | 185 | .ox = view->container->surface_x - output->lx |
186 | - view->geometry.x, | 186 | - view->geometry.x, |
187 | .oy = view->container->current.content_y - output->ly | 187 | .oy = view->container->surface_y - output->ly |
188 | - view->geometry.y, | 188 | - view->geometry.y, |
189 | .width = view->container->current.content_width, | 189 | .width = view->container->surface_width, |
190 | .height = view->container->current.content_height, | 190 | .height = view->container->surface_height, |
191 | .rotation = 0, // TODO | 191 | .rotation = 0, // TODO |
192 | }; | 192 | }; |
193 | 193 | ||