From fd954b26f76c918e85754de7b00c87b2917aa1ca Mon Sep 17 00:00:00 2001
From: Lava Block <the@lava-block.com>
Date: Fri, 10 Jul 2020 23:18:22 +0200
Subject: [PATCH] fix fullscreen switch

---
 liblava/frame/window.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/liblava/frame/window.hpp b/liblava/frame/window.hpp
index fd50655c..4f580653 100644
--- a/liblava/frame/window.hpp
+++ b/liblava/frame/window.hpp
@@ -103,7 +103,7 @@ struct window : id_obj {
 
     void set_fullscreen(bool active) {
 
-        if (fullscreen_active == active)
+        if (fullscreen_active != active)
             switch_mode_request_active = true;
     }
     bool fullscreen() const { return fullscreen_active; }
-- 
GitLab