From b921440d9fde6f4d1024fcccb39c684df3694524 Mon Sep 17 00:00:00 2001 From: o9000 Date: Tue, 5 Jan 2016 23:45:07 +0100 Subject: [PATCH] Disable backtrace by default --- CMakeLists.txt | 4 ++-- ChangeLog | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e4ecd9a..a34cf16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,8 @@ option( ENABLE_EXAMPLES "Install additional tin2rc examples" ON ) option( ENABLE_RSVG "Rsvg support (launcher only)" ON ) option( ENABLE_SN "Startup notification support" ON ) option( ENABLE_ASAN "Build tint2 with AddressSanitizer" OFF ) -option( ENABLE_BACKTRACE "Dump a backtrace in case of fatal errors (e.g. X11 I/O error)" ON ) -option( ENABLE_BACKTRACE_ON_SIGNAL "Dump a backtrace also when receiving signals such as SIGSEGV" ON ) +option( ENABLE_BACKTRACE "Dump a backtrace in case of fatal errors (e.g. X11 I/O error)" OFF ) +option( ENABLE_BACKTRACE_ON_SIGNAL "Dump a backtrace also when receiving signals such as SIGSEGV" OFF ) if( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) option( ENABLE_UEVENT "Kernel event handling support" ON ) endif( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) diff --git a/ChangeLog b/ChangeLog index e1846b4..06a54b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,9 +3,10 @@ - Support for NETWM viewports (as in Compiz) (issue #94) - The default desktop font (Gtk/FontName from XSettings) is used when a font is not specified in the config file - When no fonts are specified in the config, tint2 picks up the default font of the desktop environment via XSettings - - Tint2 dumps a stack trace to stderr and ~/.tint2-crash.log in case of a crash; + - Tint2 is now able to dump a stack trace to stderr and ~/.tint2-crash.log in case of a crash; if the cmake flag ENABLE_BACKTRACE is set, stack traces are dumped on X11 I/O errors; - if the cmake flag ENABLE_BACKTRACE_ON_SIGNAL is set, stack traces are dumped also on signals such as SIGSEGV + if the cmake flag ENABLE_BACKTRACE_ON_SIGNAL is set, stack traces are dumped also on signals such as SIGSEGV; + both ENABLE_BACKTRACE and ENABLE_BACKTRACE_ON_SIGNAL are disabled by default - Tint2 attempts to restart itself after a crash, but only if it has been running for more than 30 seconds - Pixmaps are cached instead of always redrawn between different button states when mouse effects are enabled, to improve performance