X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fpopup.c;h=f5072748734953f70dff767858596bab3ea6f232;hb=a07465f376b0a33270532501127ec812efe2c2b2;hp=77f751fcf888ba77be89c7b2facaf4c359906c1f;hpb=cea865698391bba733d763686f20d54032a940c8;p=chaz%2Fopenbox diff --git a/openbox/popup.c b/openbox/popup.c index 77f751fc..f5072748 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -154,9 +154,10 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text) gint emptyx, emptyy; /* empty space between elements */ gint textx, texty, textw, texth; gint iconx, icony, iconw, iconh; - Rect *area; + Rect *area, mon; - area = screen_physical_area(); + RECT_SET(mon, self->x, self->y, 1, 1); + area = screen_physical_area_monitor(screen_find_monitor(&mon)); /* when there is no icon and the text is not parent relative, then fill the whole dialog with the text appearance, don't use the bg at all @@ -281,6 +282,8 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text) popup_show_timeout(self); } } + + g_free(area); } void popup_hide(ObPopup *self)