all repos — fluxbox @ bb70b144320084e99961f4537cb2cf3f0d6b72da

custom fork of the fluxbox windowmanager

fix rounded corners on restart
Mark Tiefenbruck mark@fluxbox.org
commit

bb70b144320084e99961f4537cb2cf3f0d6b72da

parent

4018d088183bd77a2f8b6a775d05e849be3ffa75

3 files changed, 10 insertions(+), 3 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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)
M src/FbTk/Shape.ccsrc/FbTk/Shape.cc

@@ -56,9 +56,9 @@

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 @@ #endif // SHAPE

} void Shape::initCorners(int screen_num) { + if (!m_win->window()) + return; + if (s_corners.size() == 0) s_corners.resize(ScreenCount(App::instance()->display()));
M src/Screen.ccsrc/Screen.cc

@@ -1557,7 +1557,8 @@ FbTk::Select2nd<Configmenus::value_type>()));

if (erase_it != m_configmenu_list.end()) m_configmenu_list.erase(erase_it); - setupConfigmenu(*m_configmenu.get()); + if (!isShuttingdown()) + setupConfigmenu(*m_configmenu.get()); }