added sendTo action
This commit is contained in:
parent
5cb52056ef
commit
6a8f5f44e1
3 changed files with 22 additions and 0 deletions
|
@ -46,6 +46,8 @@ public:
|
|||
moveWindowLeft,
|
||||
moveWindowRight,
|
||||
|
||||
sendTo, //done
|
||||
|
||||
nextWindow, //done for now
|
||||
prevWindow, //done for now
|
||||
nextWindowOnAllWorkspaces, //done
|
||||
|
|
|
@ -124,6 +124,22 @@ epist::epist(char **argv, char *dpy_name, char *rc_file)
|
|||
XKeysymToKeycode(getXDisplay(),
|
||||
XStringToKeysym("O")),
|
||||
Mod1Mask | ControlMask));
|
||||
_actions.push_back(Action(Action::sendTo,
|
||||
XKeysymToKeycode(getXDisplay(),
|
||||
XStringToKeysym("1")),
|
||||
Mod1Mask | ControlMask, 0));
|
||||
_actions.push_back(Action(Action::sendTo,
|
||||
XKeysymToKeycode(getXDisplay(),
|
||||
XStringToKeysym("2")),
|
||||
Mod1Mask | ControlMask, 1));
|
||||
_actions.push_back(Action(Action::sendTo,
|
||||
XKeysymToKeycode(getXDisplay(),
|
||||
XStringToKeysym("3")),
|
||||
Mod1Mask | ControlMask, 2));
|
||||
_actions.push_back(Action(Action::sendTo,
|
||||
XKeysymToKeycode(getXDisplay(),
|
||||
XStringToKeysym("4")),
|
||||
Mod1Mask | ControlMask, 3));
|
||||
activateGrabs();
|
||||
}
|
||||
|
||||
|
|
|
@ -221,6 +221,10 @@ void screen::handleKeypress(const XEvent &e) {
|
|||
window->lower();
|
||||
return;
|
||||
|
||||
case Action::sendTo:
|
||||
window->sendTo(it->number());
|
||||
return;
|
||||
|
||||
case Action::toggleomnipresent:
|
||||
if (window->desktop() == 0xffffffff)
|
||||
window->sendTo(_active_desktop);
|
||||
|
|
Loading…
Reference in a new issue