Skip to content

Commit 267240d

Browse files
committed
constraints: Fix inability to drag c-s-d windows up beyond their
titlebars. Fixes: linuxmint/lmde-5-cinnamon-beta#3
1 parent b3feb7f commit 267240d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/core/constraints.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,13 +1610,10 @@ constrain_partially_onscreen (MetaWindow *window,
16101610
bottom_amount = info->current.height + info->borders->visible.bottom;
16111611
vert_amount_onscreen = info->borders->visible.top;
16121612
}
1613-
else if (meta_window_is_client_decorated (window))
1613+
else
16141614
{
1615-
top_amount = vert_amount_onscreen = CSD_TITLEBAR_HEIGHT * scale; /* Hardcoded for now, we don't get this from Gtk */
1616-
bottom_amount = vert_amount_offscreen = MAX ((info->current.height - (vert_amount_onscreen * 2)), 0);
1615+
bottom_amount = vert_amount_offscreen;
16171616
}
1618-
else
1619-
bottom_amount = vert_amount_offscreen;
16201617

16211618
/* Extend the region, have a helper function handle the constraint,
16221619
* then return the region to its original size.

0 commit comments

Comments
 (0)