diff options
| author | Naufal Hisyam Muzakki <155966008+NaufalH27@users.noreply.github.com> | 2026-01-21 22:55:12 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-21 15:55:12 +0000 |
| commit | e7985ca4c4fa6ca0d96a2f303c3f0395d2d27b31 (patch) | |
| tree | 9c1c5733e28980567a3280a09dbfd9212bfa0e12 /hyprtester/src/tests/main/window.cpp | |
| parent | 6c3ebed76e7def7b853e21fbf93f6eeb176696f9 (diff) | |
desktop: restore invisible floating window alpha/opacity when focused over fullscreen (#12994)
Diffstat (limited to 'hyprtester/src/tests/main/window.cpp')
| -rw-r--r-- | hyprtester/src/tests/main/window.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/hyprtester/src/tests/main/window.cpp b/hyprtester/src/tests/main/window.cpp index 8cdd8a47..524ed893 100644 --- a/hyprtester/src/tests/main/window.cpp +++ b/hyprtester/src/tests/main/window.cpp @@ -378,6 +378,26 @@ static void testMaximizeSize() { EXPECT(Tests::windowCount(), 0); } +static void testFloatingFocusOnFullscreen() { + NLog::log("{}Testing floating focus on fullscreen", Colors::GREEN); + + EXPECT(spawnKitty("kitty_A"), true); + OK(getFromSocket("/dispatch togglefloating")); + + EXPECT(spawnKitty("kitty_B"), true); + OK(getFromSocket("/dispatch fullscreen 1")); + + OK(getFromSocket("/dispatch cyclenext")); + + OK(getFromSocket("/dispatch plugin:test:floating_focus_on_fullscreen")); + + NLog::log("{}Killing all windows", Colors::YELLOW); + Tests::killAllWindows(); + + NLog::log("{}Expecting 0 windows", Colors::YELLOW); + EXPECT(Tests::windowCount(), 0); +} + static void testGroupFallbackFocus() { NLog::log("{}Testing group fallback focus", Colors::GREEN); @@ -994,6 +1014,7 @@ static bool test() { testGroupRules(); testMaximizeSize(); + testFloatingFocusOnFullscreen(); testBringActiveToTopMouseMovement(); testGroupFallbackFocus(); testInitialFloatSize(); |
