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) {