Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
do not try to resize if size wouldn't change
Browse files Browse the repository at this point in the history
  • Loading branch information
sevz17 committed Dec 24, 2022
1 parent 6ca0114 commit be854ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ client_set_size(Client *c, uint32_t width, uint32_t height)
return 0;
}
#endif
if (width == c->surface.xdg->toplevel->current.width
&& height ==c->surface.xdg->toplevel->current.height)
return 0;
return wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, width, height);
}

Expand Down

0 comments on commit be854ca

Please sign in to comment.