Added toggleScreen function, using hot key to loop through all screens.

Comparing to switchToScreen, it is more handy since the user only need
to hit one hotkey.
This commit is contained in:
zhexiwang
2020-06-02 21:49:06 +08:00
parent dbd10820c3
commit b477efa706
11 changed files with 112 additions and 5 deletions

View File

@@ -1182,6 +1182,10 @@ Config::parseAction(ConfigReadContext& s,
action = new InputFilter::SwitchToScreenAction(m_events, screen);
}
else if (name == "toggleScreen") {
action = new InputFilter::ToggleScreenAction(m_events);
}
else if (name == "switchInDirection") {
if (args.size() != 1) {
throw XConfigRead(s, "syntax for action: switchInDirection(<left|right|up|down>)");