]> Dogcows Code - chaz/openbox/commitdiff
added sendTo action
authorDana Jansens <danakj@orodu.net>
Sat, 20 Jul 2002 10:15:43 +0000 (10:15 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 20 Jul 2002 10:15:43 +0000 (10:15 +0000)
util/epist/actions.hh
util/epist/epist.cc
util/epist/screen.cc

index 22b11370ef66e237281fe818e71db99482e5ed51..f95f007b3c65cb77ee71d56e9fec49c75ca1b31c 100644 (file)
@@ -46,6 +46,8 @@ public:
     moveWindowLeft,
     moveWindowRight,
 
+    sendTo, //done
+
     nextWindow, //done for now
     prevWindow, //done for now
     nextWindowOnAllWorkspaces, //done
index bb33b30829b5c19bf1eab0e3cc71f2c3c75ef7e3..4d557ab54c3b7130106f59ee5284aa16ebac42cc 100644 (file)
@@ -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();
 }
 
index ec73aa82e5aa857bc39a583904eba958caee0561..8597e5953d2df2392a7c4aaea8f510cf866b6835 100644 (file)
@@ -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);
This page took 0.024582 seconds and 4 git commands to generate.