xwayland: validate size hints before floating (#13361)

This commit is contained in:
Skidam 2026-02-26 17:42:49 +01:00 committed by GitHub
parent c71fbd854d
commit cc14dd1baf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -679,14 +679,14 @@ static bool test() {
EXPECT(Tests::windowCount(), 3);
NLog::log("{}Checking props of xeyes", Colors::YELLOW);
// check some window props of xeyes, try to tile them
// check some window props of xeyes, try to float it
{
auto str = getFromSocket("/clients");
EXPECT_CONTAINS(str, "floating: 1");
getFromSocket("/dispatch settiled class:XEyes");
EXPECT_NOT_CONTAINS(str, "floating: 1");
getFromSocket("/dispatch setfloating class:XEyes");
std::this_thread::sleep_for(std::chrono::milliseconds(200));
str = getFromSocket("/clients");
EXPECT_NOT_CONTAINS(str, "floating: 1");
EXPECT_CONTAINS(str, "floating: 1");
}
// kill all