From bb70b144320084e99961f4537cb2cf3f0d6b72da Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Thu, 25 Sep 2008 20:51:37 -0700 Subject: fix rounded corners on restart --- ChangeLog | 3 +++ src/FbTk/Shape.cc | 7 +++++-- src/Screen.cc | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a2bddf2..aa6e6f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 1.1.2 +*08/09/25: + * Fixed issues with round corners on restart, #2110455 (Mark) + FbTk/Shape.cc *08/09/21: * Changed icon list signal in BScreen to use the new signal system (Henrik) diff --git a/src/FbTk/Shape.cc b/src/FbTk/Shape.cc index 6cc46f8..7c14832 100644 --- a/src/FbTk/Shape.cc +++ b/src/FbTk/Shape.cc @@ -56,9 +56,9 @@ Pixmap makePixmap(FbWindow &drawable, const unsigned char rows[]) { Display *disp = App::instance()->display(); const size_t data_size = 8 * 8; - // we use calloc here so we get consistent C alloc/free with XDestroyImage + // we use malloc here so we get consistent C alloc/free with XDestroyImage // and no warnings in valgrind :) - char *data = (char *)calloc(data_size, sizeof (char)); + char *data = (char *)malloc(data_size * sizeof (char)); if (data == 0) return 0; @@ -141,6 +141,9 @@ Shape::~Shape() { } void Shape::initCorners(int screen_num) { + if (!m_win->window()) + return; + if (s_corners.size() == 0) s_corners.resize(ScreenCount(App::instance()->display())); diff --git a/src/Screen.cc b/src/Screen.cc index cde62cc..8b81529 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -1557,7 +1557,8 @@ void BScreen::removeConfigMenu(FbTk::Menu &menu) { if (erase_it != m_configmenu_list.end()) m_configmenu_list.erase(erase_it); - setupConfigmenu(*m_configmenu.get()); + if (!isShuttingdown()) + setupConfigmenu(*m_configmenu.get()); } -- cgit v0.11.2