mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 08:26:45 +01:00
shells: Update comment about size change on commit
This commit is contained in:
parent
1989b18ff2
commit
95901d906a
2 changed files with 6 additions and 3 deletions
|
@ -293,7 +293,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
||||||
new_geo.y != view->geometry.y;
|
new_geo.y != view->geometry.y;
|
||||||
|
|
||||||
if (new_size) {
|
if (new_size) {
|
||||||
// The view has unexpectedly sent a new size
|
// The client changed its surface size in this commit. For floating
|
||||||
|
// containers, we resize the container to match. For tiling containers,
|
||||||
|
// we only recenter the surface.
|
||||||
desktop_damage_view(view);
|
desktop_damage_view(view);
|
||||||
memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
|
memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
|
||||||
if (container_is_floating(view->container)) {
|
if (container_is_floating(view->container)) {
|
||||||
|
|
|
@ -407,8 +407,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
||||||
new_geo.y != view->geometry.y;
|
new_geo.y != view->geometry.y;
|
||||||
|
|
||||||
if (new_size) {
|
if (new_size) {
|
||||||
// The view has unexpectedly sent a new size
|
// The client changed its surface size in this commit. For floating
|
||||||
// eg. The Firefox "Save As" dialog when downloading a file
|
// containers, we resize the container to match. For tiling containers,
|
||||||
|
// we only recenter the surface.
|
||||||
desktop_damage_view(view);
|
desktop_damage_view(view);
|
||||||
memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
|
memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
|
||||||
if (container_is_floating(view->container)) {
|
if (container_is_floating(view->container)) {
|
||||||
|
|
Loading…
Reference in a new issue