aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fluxbox.cc18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 1e09ef2..27ee143 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.89 2003/01/09 18:30:49 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.90 2003/01/10 00:44:17 fluxgen Exp $
26 26
27 27
28#include "fluxbox.hh" 28#include "fluxbox.hh"
@@ -1279,21 +1279,7 @@ void Fluxbox::handleKeyEvent(XKeyEvent &ke) {
1279 break; 1279 break;
1280 case Keys::EXECUTE: //execute command on keypress 1280 case Keys::EXECUTE: //execute command on keypress
1281 { 1281 {
1282#ifndef __EMX__ 1282 cerr<<"TODO"<<endl;
1283 char displaystring[MAXPATHLEN];
1284 sprintf(displaystring, "DISPLAY=%s",
1285 DisplayString(getXDisplay()));
1286 sprintf(displaystring + strlen(displaystring) - 1, "%d",
1287 screen->getScreenNumber());
1288#ifdef DEBUG
1289 cerr<<__FILE__<<"("<<__LINE__<<"): Executing:"<<key->getExecCommand().c_str()<<endl;
1290#endif // DEBUG
1291
1292 bexec(key->getExecCommand().c_str(), displaystring);
1293#else
1294 spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", item->exec(), NULL);
1295#endif // !__EMX__
1296
1297 1283
1298 } 1284 }
1299 break; 1285 break;