diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-09-26 03:51:37 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-09-26 03:51:37 (GMT) |
commit | bb70b144320084e99961f4537cb2cf3f0d6b72da (patch) | |
tree | 3330ae3b9f67a58263f5405cab15a2c2fe3b3eb5 | |
parent | 4018d088183bd77a2f8b6a775d05e849be3ffa75 (diff) | |
download | fluxbox_paul-bb70b144320084e99961f4537cb2cf3f0d6b72da.zip fluxbox_paul-bb70b144320084e99961f4537cb2cf3f0d6b72da.tar.bz2 |
fix rounded corners on restart
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/FbTk/Shape.cc | 7 | ||||
-rw-r--r-- | src/Screen.cc | 3 |
3 files changed, 10 insertions, 3 deletions
@@ -1,5 +1,8 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 1.1.2 | 2 | Changes for 1.1.2 |
3 | *08/09/25: | ||
4 | * Fixed issues with round corners on restart, #2110455 (Mark) | ||
5 | FbTk/Shape.cc | ||
3 | *08/09/21: | 6 | *08/09/21: |
4 | * Changed icon list signal in BScreen to use the new signal system | 7 | * Changed icon list signal in BScreen to use the new signal system |
5 | (Henrik) | 8 | (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[]) { | |||
56 | Display *disp = App::instance()->display(); | 56 | Display *disp = App::instance()->display(); |
57 | 57 | ||
58 | const size_t data_size = 8 * 8; | 58 | const size_t data_size = 8 * 8; |
59 | // we use calloc here so we get consistent C alloc/free with XDestroyImage | 59 | // we use malloc here so we get consistent C alloc/free with XDestroyImage |
60 | // and no warnings in valgrind :) | 60 | // and no warnings in valgrind :) |
61 | char *data = (char *)calloc(data_size, sizeof (char)); | 61 | char *data = (char *)malloc(data_size * sizeof (char)); |
62 | if (data == 0) | 62 | if (data == 0) |
63 | return 0; | 63 | return 0; |
64 | 64 | ||
@@ -141,6 +141,9 @@ Shape::~Shape() { | |||
141 | } | 141 | } |
142 | 142 | ||
143 | void Shape::initCorners(int screen_num) { | 143 | void Shape::initCorners(int screen_num) { |
144 | if (!m_win->window()) | ||
145 | return; | ||
146 | |||
144 | if (s_corners.size() == 0) | 147 | if (s_corners.size() == 0) |
145 | s_corners.resize(ScreenCount(App::instance()->display())); | 148 | s_corners.resize(ScreenCount(App::instance()->display())); |
146 | 149 | ||
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) { | |||
1557 | if (erase_it != m_configmenu_list.end()) | 1557 | if (erase_it != m_configmenu_list.end()) |
1558 | m_configmenu_list.erase(erase_it); | 1558 | m_configmenu_list.erase(erase_it); |
1559 | 1559 | ||
1560 | setupConfigmenu(*m_configmenu.get()); | 1560 | if (!isShuttingdown()) |
1561 | setupConfigmenu(*m_configmenu.get()); | ||
1561 | 1562 | ||
1562 | } | 1563 | } |
1563 | 1564 | ||