Merge pull request #40 from MoonKnight76/main

Disable round corners when in pseudo-fullscreen
This commit is contained in:
vaxerski 2022-03-11 16:24:32 +01:00 committed by GitHub
commit daf76c5f54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1,11 +1,11 @@
all: cmake
release:
mkdir build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja
mkdir -p build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja
cmake --build ./build --config Release --target all -j 10
debug:
mkdir build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -H./ -B./build -G Ninja
mkdir -p build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -H./ -B./build -G Ninja
cmake --build ./build --config Debug --target all -j 10
clear:

View file

@ -765,7 +765,7 @@ void CWindowManager::applyShapeToWindow(CWindow* pWindow) {
if (!pWindow)
return;
const auto ROUNDING = pWindow->getFullscreen() ? 0 : ConfigManager::getInt("rounding");
const auto ROUNDING = pWindow->getFullscreen() || (ConfigManager::getInt("layout:no_gaps_when_only") && getWindowsOnWorkspace(pWindow->getWorkspaceID()) == 1) ? 0 : ConfigManager::getInt("rounding");
const auto SHAPEQUERY = xcb_get_extension_data(DisplayConnection, &xcb_shape_id);