summaryrefslogtreecommitdiffstats
path: root/tsak/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-17 23:27:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-17 23:27:00 +0000
commite723b237f11e18822f7971f1b5d8884b666455eb (patch)
treed1b26ff60a10aa84244fa2526a8778b11d54410f /tsak/main.cpp
parentc8ff4ef743f03d015db000d6f44b4249575c390f (diff)
downloadtdebase-e723b237f11e18822f7971f1b5d8884b666455eb.tar.gz
tdebase-e723b237f11e18822f7971f1b5d8884b666455eb.zip
Make the SAK only work on the current VT
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1254116 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tsak/main.cpp')
-rw-r--r--tsak/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tsak/main.cpp b/tsak/main.cpp
index 57e228c2e..2b51dbc85 100644
--- a/tsak/main.cpp
+++ b/tsak/main.cpp
@@ -329,9 +329,11 @@ int main (int argc, char *argv[])
}
if (hide_event == true) {
// Let anyone listening to our interface know that an SAK keypress was received
- write(mPipe_fd_out, "SAK\n\r", 6);
- write(mPipe_fd_out, "SAK\n\r", 6);
- write(mPipe_fd_out, "SAK\n\r", 6);
+ // I highly doubt there are more than 255 VTs active at once...
+ int i;
+ for (i=0;i<255;i++) {
+ write(mPipe_fd_out, "SAK\n\r", 6);
+ }
}
}
}