aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-03-28 22:26:56 -0400
committerTony Crisci <tony@dubstepdish.com>2018-03-28 22:26:56 -0400
commit27f450ac0eb254dad03c11b14d4785c16dac0c51 (patch)
treee6d7edebbf3181b11471a23a9d32a9133b7bed22
parent71da20dbdefd137d53bbbdb7bfd6f242c1698548 (diff)
add todo for rotated unconstrained popup
-rw-r--r--rootston/xdg_shell_v6.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c
index 295d9ff4..0aca9638 100644
--- a/rootston/xdg_shell_v6.c
+++ b/rootston/xdg_shell_v6.c
@@ -54,6 +54,12 @@ static void popup_unconstrain(struct roots_xdg_popup_v6 *popup) {
// get the output of the popup's positioner anchor point and convert it to
// the toplevel parent's coordinate system and then pass it to
// wlr_xdg_popup_v6_unconstrain_from_box
+
+ // TODO: unconstrain popups for rotated windows
+ if (popup->view_child.view->rotation != 0.0) {
+ return;
+ }
+
struct roots_view *view = popup->view_child.view;
struct wlr_output_layout *layout = view->desktop->layout;
struct wlr_xdg_popup_v6 *wlr_popup = popup->wlr_popup;