mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-25 22:35:58 +01:00
Add trigger method when pressing lastworkspace hotkey
This commit is contained in:
parent
32e4d99929
commit
22a2526ddf
2 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "KeybindManager.hpp"
|
||||
#include "utilities/Util.hpp"
|
||||
#include "events/events.hpp"
|
||||
#include "windowManager.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <string.h>
|
||||
|
@ -157,11 +158,15 @@ void KeybindManager::changeworkspace(std::string arg) {
|
|||
|
||||
if (ID != -1) {
|
||||
Debug::log(LOG, "Changing the current workspace to " + std::to_string(ID));
|
||||
|
||||
g_pWindowManager->changeWorkspaceByID(ID);
|
||||
}
|
||||
}
|
||||
|
||||
void KeybindManager::changetolastworkspace(std::string arg) {
|
||||
Debug::log(LOG, "Changing the current workspace to the last workspace");
|
||||
g_pWindowManager->changeToLastWorkspace();
|
||||
}
|
||||
|
||||
void KeybindManager::toggleActiveWindowFullscreen(std::string unusedArg) {
|
||||
g_pWindowManager->toggleWindowFullscrenn(g_pWindowManager->LastWindow);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ namespace KeybindManager {
|
|||
void movewindow(std::string args);
|
||||
void movefocus(std::string args);
|
||||
void changeworkspace(std::string args);
|
||||
void changetolastworkspace(std::string args);
|
||||
void toggleActiveWindowFullscreen(std::string args);
|
||||
void toggleActiveWindowFloating(std::string args);
|
||||
void movetoworkspace(std::string args);
|
||||
|
|
Loading…
Reference in a new issue