Skip to content

Commit

Permalink
Merge pull request #40 from MoonKnight76/main
Browse files Browse the repository at this point in the history
Disable round corners when in pseudo-fullscreen
  • Loading branch information
vaxerski authored Mar 11, 2022
2 parents 82eeba5 + 9bd42cd commit daf76c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/windowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit daf76c5

Please sign in to comment.