mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 23:45:58 +01:00
fix up styling
This commit is contained in:
parent
f5697095bc
commit
5d09bb647b
1 changed files with 1 additions and 4 deletions
|
@ -577,10 +577,7 @@ void CKeybindManager::changeworkspace(std::string args) {
|
||||||
const auto PCURRENTWORKSPACE = g_pCompositor->getWorkspaceByID(
|
const auto PCURRENTWORKSPACE = g_pCompositor->getWorkspaceByID(
|
||||||
g_pCompositor->m_pLastMonitor->activeWorkspace);
|
g_pCompositor->m_pLastMonitor->activeWorkspace);
|
||||||
static auto *const PBACKANDFORTH = &g_pConfigManager->getConfigValuePtr("binds:workspace_back_and_forth")->intValue;
|
static auto *const PBACKANDFORTH = &g_pConfigManager->getConfigValuePtr("binds:workspace_back_and_forth")->intValue;
|
||||||
if (*PBACKANDFORTH
|
if (*PBACKANDFORTH && PCURRENTWORKSPACE->m_iID == workspaceToChangeTo && PCURRENTWORKSPACE->m_iPrevWorkspaceID != -1 && !internal) {
|
||||||
&& PCURRENTWORKSPACE->m_iID == workspaceToChangeTo
|
|
||||||
&& PCURRENTWORKSPACE->m_iPrevWorkspaceID != -1
|
|
||||||
&& !internal) {
|
|
||||||
|
|
||||||
workspaceToChangeTo = PCURRENTWORKSPACE->m_iPrevWorkspaceID;
|
workspaceToChangeTo = PCURRENTWORKSPACE->m_iPrevWorkspaceID;
|
||||||
isSwitchingToPrevious = true;
|
isSwitchingToPrevious = true;
|
||||||
|
|
Loading…
Reference in a new issue