From 22983f40f33119fbbbc535447cbd1be8e43a3960 Mon Sep 17 00:00:00 2001
From: vaxerski <43317083+vaxerski@users.noreply.github.com>
Date: Sun, 19 Dec 2021 19:50:57 +0100
Subject: [PATCH] no

---
 src/window.cpp        |  2 +-
 src/window.hpp        |  3 ---
 src/windowManager.cpp | 10 ----------
 3 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/src/window.cpp b/src/window.cpp
index 815e749..f4a29ed 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1,7 +1,7 @@
 #include "window.hpp"
 #include "windowManager.hpp"
 
-CWindow::CWindow() { this->setRounded(false); this->setLastUpdatePosition(Vector2D(0,0)); this->setLastUpdateSize(Vector2D(0,0)); this->setDock(false); this->setUnderFullscreen(false); this->setIsSleeping(true); this->setFirstAnimFrame(true); this->setIsAnimated(false); this->setDead(false); this->setMasterChildIndex(0); this->setMaster(false); this->setCanKill(false); this->setImmovable(false); this->setNoInterventions(false); this->setDirty(true); this->setFullscreen(false); this->setIsFloating(false); this->setParentNodeID(0); this->setChildNodeAID(0); this->setChildNodeBID(0); this->setName(""); }
+CWindow::CWindow() { this->setLastUpdatePosition(Vector2D(0,0)); this->setLastUpdateSize(Vector2D(0,0)); this->setDock(false); this->setUnderFullscreen(false); this->setIsSleeping(true); this->setFirstAnimFrame(true); this->setIsAnimated(false); this->setDead(false); this->setMasterChildIndex(0); this->setMaster(false); this->setCanKill(false); this->setImmovable(false); this->setNoInterventions(false); this->setDirty(true); this->setFullscreen(false); this->setIsFloating(false); this->setParentNodeID(0); this->setChildNodeAID(0); this->setChildNodeBID(0); this->setName(""); }
 CWindow::~CWindow() { }
 
 void CWindow::generateNodeID() {
diff --git a/src/window.hpp b/src/window.hpp
index 9594271..f8db2a0 100644
--- a/src/window.hpp
+++ b/src/window.hpp
@@ -94,9 +94,6 @@ public:
     // Docks
     EXPOSED_MEMBER(Dock, bool, b);
     EXPOSED_MEMBER(DockAlign, EDockAlign, e);
-
-    // Rounding
-    EXPOSED_MEMBER(Rounded, bool, b);
     
 
 private:
diff --git a/src/windowManager.cpp b/src/windowManager.cpp
index 5fbbe55..3f5e4ca 100644
--- a/src/windowManager.cpp
+++ b/src/windowManager.cpp
@@ -607,13 +607,6 @@ void CWindowManager::applyShapeToWindow(CWindow* pWindow) {
 
     const auto ROUNDING = pWindow->getFullscreen() ? 0 : ConfigManager::getInt("rounding");
 
-    if (!pWindow->getRounded() && !ROUNDING)
-        return;
-
-    if (!ROUNDING && pWindow->getRounded()) {
-        pWindow->setRounded(false);
-    }
-
     const auto SHAPEQUERY = xcb_get_extension_data(DisplayConnection, &xcb_shape_id);
 
     if (!SHAPEQUERY || !SHAPEQUERY->present || pWindow->getNoInterventions())
@@ -701,9 +694,6 @@ void CWindowManager::applyShapeToWindow(CWindow* pWindow) {
 
     xcb_free_pixmap(DisplayConnection, PIXMAP1);
     xcb_free_pixmap(DisplayConnection, PIXMAP2);
-
-    if (ROUNDING)
-        pWindow->setRounded(true);
 }
 
 void CWindowManager::setEffectiveSizePosUsingConfig(CWindow* pWindow) {