projects
/
mikachu
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes for the pager popups, and avoid a crash if you destroy a popup while it...
[mikachu/openbox.git]
/
openbox
/
popup.c
diff --git
a/openbox/popup.c
b/openbox/popup.c
index
2a0d596
..
5cbe034
100644
(file)
--- a/
openbox/popup.c
+++ b/
openbox/popup.c
@@
-65,6
+65,8
@@
ObPopup *popup_new(void)
void popup_free(ObPopup *self)
{
if (self) {
void popup_free(ObPopup *self)
{
if (self) {
+ popup_hide(self); /* make sure it's not showing or is being delayed and
+ will be shown */
XDestroyWindow(ob_display, self->bg);
XDestroyWindow(ob_display, self->text);
RrAppearanceFree(self->a_bg);
XDestroyWindow(ob_display, self->bg);
XDestroyWindow(ob_display, self->text);
RrAppearanceFree(self->a_bg);