mirror of
https://github.com/swaywm/sway.git
synced 2024-11-27 02:11:28 +00:00
Fix fullscreen position
This commit is contained in:
parent
97672295ed
commit
f24087d104
|
@ -554,13 +554,12 @@ void view_update_position(struct sway_view *view, double lx, double ly) {
|
||||||
if (view->x == lx && view->y == ly) {
|
if (view->x == lx && view->y == ly) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!container_is_floating(view->swayc)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
container_damage_whole(view->swayc);
|
container_damage_whole(view->swayc);
|
||||||
view->x = lx;
|
view->x = lx;
|
||||||
view->y = ly;
|
view->y = ly;
|
||||||
container_set_geometry_from_floating_view(view->swayc);
|
if (container_is_floating(view->swayc)) {
|
||||||
|
container_set_geometry_from_floating_view(view->swayc);
|
||||||
|
}
|
||||||
container_damage_whole(view->swayc);
|
container_damage_whole(view->swayc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue