do not try to resize if size wouldn't change

このコミットが含まれているのは:
Leonardo Hernández Hernández 2022-12-14 23:21:58 -06:00
コミット be854cab35
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: E538897EE11B9624
1個のファイルの変更3行の追加0行の削除

ファイルの表示

@ -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);
}