mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Implement default_floating_border command and adjust CSD behaviour
This commit is contained in:
parent
7268d544c2
commit
75c699db62
7 changed files with 72 additions and 21 deletions
|
|
@ -967,9 +967,14 @@ void container_set_geometry_from_floating_view(struct sway_container *con) {
|
|||
return;
|
||||
}
|
||||
struct sway_view *view = con->sway_view;
|
||||
size_t border_width = view->border_thickness * (view->border != B_NONE);
|
||||
size_t top =
|
||||
view->border == B_NORMAL ? container_titlebar_height() : border_width;
|
||||
size_t border_width = 0;
|
||||
size_t top = 0;
|
||||
|
||||
if (!view->using_csd) {
|
||||
border_width = view->border_thickness * (view->border != B_NONE);
|
||||
top = view->border == B_NORMAL ?
|
||||
container_titlebar_height() : border_width;
|
||||
}
|
||||
|
||||
con->x = view->x - border_width;
|
||||
con->y = view->y - top;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue