aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-27 22:00:19 (GMT)
committerfluxgen <fluxgen>2002-11-27 22:00:19 (GMT)
commit1eed220f986d32d685164767aa7b74eb0ece4f1c (patch)
tree2971dd904fedbb9dc3abf51aa94f237edfb3b34f /src
parent9682bdd1a5044f4112a8a67827d4f55b9c1c25be (diff)
downloadfluxbox-1eed220f986d32d685164767aa7b74eb0ece4f1c.zip
fluxbox-1eed220f986d32d685164767aa7b74eb0ece4f1c.tar.bz2
using new SignalEventHandler
Diffstat (limited to 'src')
-rw-r--r--src/fluxbox.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index dab52b9..dab26bd 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.81 2002/11/15 12:19:17 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.82 2002/11/27 22:00:19 fluxgen Exp $
26 26
27 27
28#include "fluxbox.hh" 28#include "fluxbox.hh"
@@ -1558,11 +1558,11 @@ void Fluxbox::doWindowAction(Keys::KeyAction action, const int param) {
1558} 1558}
1559 1559
1560// handle system signals here 1560// handle system signals here
1561void Fluxbox::handleEvent(SignalEvent * const sig) { 1561void Fluxbox::handleSignal(int signum) {
1562 I18n *i18n = I18n::instance(); 1562 I18n *i18n = I18n::instance();
1563 static int re_enter = 0; 1563 static int re_enter = 0;
1564 1564
1565 switch (sig->signum) { 1565 switch (signum) {
1566 case SIGCHLD: // we don't want the child process to kill us 1566 case SIGCHLD: // we don't want the child process to kill us
1567 waitpid(-1, 0, WNOHANG | WUNTRACED); 1567 waitpid(-1, 0, WNOHANG | WUNTRACED);
1568 break; 1568 break;
@@ -1588,7 +1588,7 @@ void Fluxbox::handleEvent(SignalEvent * const sig) {
1588 i18n->getMessage( 1588 i18n->getMessage(
1589 FBNLS::BaseDisplaySet, FBNLS::BaseDisplaySignalCaught, 1589 FBNLS::BaseDisplaySet, FBNLS::BaseDisplaySignalCaught,
1590 "%s: signal %d caught\n"), 1590 "%s: signal %d caught\n"),
1591 getApplicationName(), sig); 1591 getApplicationName(), signum);
1592 1592
1593 if (! isStartup() && ! re_enter) { 1593 if (! isStartup() && ! re_enter) {
1594 re_enter = 1; 1594 re_enter = 1;