Skip to content

Commit b0ee395

Browse files
committed
Fixed clang-format, formatted main.cpp
1 parent 0c326fb commit b0ee395

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.clang-format

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ BreakBeforeBraces: Stroustrup
33
TabWidth: 4
44
IndentWidth: 4
55
UseTab: Never
6-
AllowShortIfStatementsOnASingleLine: false
76
IndentCaseLabels: true
87
ColumnLimit: 200
98
PointerAlignment: Left

src/main.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#include <cstdint>
33
#include <hyprland/src/Compositor.hpp>
44
#include <hyprland/src/config/ConfigManager.hpp>
5-
#include <hyprland/src/helpers/Color.hpp>
65
#include <hyprland/src/desktop/Workspace.hpp>
6+
#include <hyprland/src/helpers/Color.hpp>
77
#include <hyprland/src/managers/KeybindManager.hpp>
88

99
#include "globals.hpp"
@@ -150,7 +150,8 @@ void fixWorkspaceArrangement()
150150
continue;
151151
}
152152
g_pCompositor->moveWorkspaceToMonitor(workspacePtr, monitorPtr);
153-
} else {
153+
}
154+
else {
154155
Debug::log(WARN, "[split-monitor-workspaces] fixWorkspaceArrangement: Workspace not found: {}", workspace);
155156
}
156157
}
@@ -166,13 +167,11 @@ void mapWorkspacesToMonitors()
166167
static const auto* const workspaceCountPtr = (Hyprlang::INT* const*)HyprlandAPI::getConfigValue(PHANDLE, k_workspaceCount)->getDataStaticPtr();
167168
static const auto* const keepFocusedPtr = (Hyprlang::INT* const*)HyprlandAPI::getConfigValue(PHANDLE, k_keepFocused)->getDataStaticPtr();
168169

169-
if (workspaceCountPtr == nullptr)
170-
{
170+
if (workspaceCountPtr == nullptr) {
171171
Debug::log(WARN, "[split-monitor-workspaces] Failed to get workspace count config value");
172172
return;
173173
}
174-
if (keepFocusedPtr == nullptr)
175-
{
174+
if (keepFocusedPtr == nullptr) {
176175
Debug::log(WARN, "[split-monitor-workspaces] Failed to get keep focused config value");
177176
return;
178177
}

0 commit comments

Comments
 (0)