aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-03-28 20:51:25 -0400
committerTony Crisci <tony@dubstepdish.com>2018-03-28 20:51:25 -0400
commit71da20dbdefd137d53bbbdb7bfd6f242c1698548 (patch)
tree274420102a17ba3b26dfa87db1d6fdc7eaff75d8 /rootston
parentcf13a6d9c6f4f9a2d97284236131e4b713aa02c8 (diff)
add comment for output box in toplevel coords
Diffstat (limited to 'rootston')
-rw-r--r--rootston/xdg_shell_v6.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c
index fe63e697..295d9ff4 100644
--- a/rootston/xdg_shell_v6.c
+++ b/rootston/xdg_shell_v6.c
@@ -84,14 +84,16 @@ static void popup_unconstrain(struct roots_xdg_popup_v6 *popup) {
int width = 0, height = 0;
wlr_output_effective_resolution(output, &width, &height);
- struct wlr_box toplevel_box = {
+ // the output box expressed in the coordinate system of the toplevel parent
+ // of the popup
+ struct wlr_box output_box_toplevel = {
.x = output->lx - view->x,
.y = output->ly - view->y,
.width = width,
.height = height
};
- wlr_xdg_popup_v6_unconstrain_from_box(popup->wlr_popup, &toplevel_box);
+ wlr_xdg_popup_v6_unconstrain_from_box(popup->wlr_popup, &output_box_toplevel);
}
static struct roots_xdg_popup_v6 *popup_create(struct roots_view *view,