X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fpopup.c;h=86d4fb4dec6bd01549542236fa5cb589a281e705;hb=205d7ff4697c7941256e4ae71db8ea41e94494f3;hp=91c1849c659315e26bfe148d5405cb079d8e628a;hpb=2b2245851d2cd6d104c3ba56893646e2e2358794;p=chaz%2Fopenbox diff --git a/openbox/popup.c b/openbox/popup.c index 91c1849c..86d4fb4d 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -265,11 +265,15 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text) void popup_hide(ObPopup *self) { if (self->mapped) { + gulong ignore_start; + + /* kill enter events cause by this unmapping */ + ignore_start = event_start_ignore_all_enters(); + XUnmapWindow(ob_display, self->bg); self->mapped = FALSE; - /* kill enter events cause by this unmapping */ - event_ignore_queued_enters(); + event_end_ignore_all_enters(ignore_start); } else if (self->delay_mapped) { ob_main_loop_timeout_remove(ob_main_loop, popup_show_timeout); self->delay_mapped = FALSE; @@ -324,6 +328,7 @@ void icon_popup_delay_show(ObIconPopup *self, gulong usec, self->a_icon->texture[0].type = RR_TEXTURE_RGBA; self->a_icon->texture[0].data.rgba.width = icon->width; self->a_icon->texture[0].data.rgba.height = icon->height; + self->a_icon->texture[0].data.rgba.alpha = 0xff; self->a_icon->texture[0].data.rgba.data = icon->data; } else self->a_icon->texture[0].type = RR_TEXTURE_NONE;