diff options
Diffstat (limited to 'ksysv/ksvapplication.cpp')
-rw-r--r-- | ksysv/ksvapplication.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ksysv/ksvapplication.cpp b/ksysv/ksvapplication.cpp new file mode 100644 index 0000000..d305712 --- /dev/null +++ b/ksysv/ksvapplication.cpp @@ -0,0 +1,20 @@ +// (c) 2000 Peter Putzer + +#include <unistd.h> + +#include <kwin.h> + +#include "ksvapplication.h" + +int KSVApplication::newInstance () +{ + QWidget* main = mainWidget(); + + if (main) + KWin::activateWindow (main->winId()); + + return getpid(); +} + +#include "ksvapplication.moc" + |