summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/follow_mouse_shrink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyprtester/src/tests/main/follow_mouse_shrink.cpp')
-rw-r--r--hyprtester/src/tests/main/follow_mouse_shrink.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/hyprtester/src/tests/main/follow_mouse_shrink.cpp b/hyprtester/src/tests/main/follow_mouse_shrink.cpp
index 0e12915b..600643c6 100644
--- a/hyprtester/src/tests/main/follow_mouse_shrink.cpp
+++ b/hyprtester/src/tests/main/follow_mouse_shrink.cpp
@@ -9,9 +9,9 @@
static bool isActiveWindow(const std::string& class_, char fullscreen = '0', bool log = true) {
std::string activeWin = getFromSocket("/activewindow");
- auto winClass = Tests::getWindowAttribute(activeWin, "class:");
- auto winFullscreen = Tests::getWindowAttribute(activeWin, "fullscreen:").back();
- if (winClass.substr(strlen("class: ")) == class_ && winFullscreen == fullscreen)
+ auto winClass = Tests::getAttribute(activeWin, "class");
+ auto winFullscreen = Tests::getAttribute(activeWin, "fullscreen").back();
+ if (winClass == class_ && winFullscreen == fullscreen)
return true;
else {
if (log)