diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-03-28 20:09:20 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-03-28 20:09:20 -0400 |
commit | cf13a6d9c6f4f9a2d97284236131e4b713aa02c8 (patch) | |
tree | 49be073f1c5d4fc45ff92fed797bb091ad1a09bc | |
parent | 967bccffcd634a6ba2d13185c530f64b4d1eb613 (diff) |
address toplevel coords issue
-rw-r--r-- | types/wlr_xdg_shell_v6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_xdg_shell_v6.c b/types/wlr_xdg_shell_v6.c index 2a780a37..44bd8d9a 100644 --- a/types/wlr_xdg_shell_v6.c +++ b/types/wlr_xdg_shell_v6.c @@ -1674,7 +1674,7 @@ void wlr_xdg_popup_v6_get_anchor_point(struct wlr_xdg_popup_v6 *popup, void wlr_xdg_popup_v6_get_toplevel_coords(struct wlr_xdg_popup_v6 *popup, int popup_sx, int popup_sy, int *toplevel_sx, int *toplevel_sy) { struct wlr_xdg_surface_v6 *parent = popup->parent; - while (parent && parent->role != WLR_XDG_SURFACE_V6_ROLE_TOPLEVEL) { + while (parent != NULL && parent->role == WLR_XDG_SURFACE_V6_ROLE_POPUP) { popup_sx += parent->popup->geometry.x; popup_sy += parent->popup->geometry.y; parent = parent->popup->parent; |