diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-02 00:59:07 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-02 00:59:07 +0000 |
| commit | 0da9aa2660b51ce6208b041cc6e14f15e522c289 (patch) | |
| tree | 77810ac57b56d6593864d1d9f59a7883f265c0b7 /openbox/popup.h | |
| parent | 66d6e1120ec4e66433ecec673258856def164070 (diff) | |
add a slight delay to the focus/desktop switch dialogs. so if you hit the key really fast there is no flicker. of course if you hit it fast but not fast enough there is still flicker. is this cool or does this make it feel bad? i dunno. we'll see..
make the keychain popup use the new delay popup facilities
Diffstat (limited to 'openbox/popup.h')
| -rw-r--r-- | openbox/popup.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/openbox/popup.h b/openbox/popup.h index 3ce0b5cc..66e0fcab 100644 --- a/openbox/popup.h +++ b/openbox/popup.h @@ -48,6 +48,7 @@ struct _ObPopup gint w; gint h; gboolean mapped; + gboolean delay_mapped; void (*draw_icon)(gint x, gint y, gint w, gint h, gpointer data); gpointer draw_icon_data; @@ -91,7 +92,8 @@ void popup_width_to_strings(ObPopup *self, gchar **strings, gint max); void popup_set_text_align(ObPopup *self, RrJustify align); -void popup_show(ObPopup *self, gchar *text); +#define popup_show(s, t) popup_delay_show((s),0,(t)) +void popup_delay_show(ObPopup *self, gulong usec, gchar *text); void popup_hide(ObPopup *self); RrAppearance *popup_icon_appearance(ObPopup *self); @@ -100,8 +102,9 @@ RrAppearance *popup_icon_appearance(ObPopup *self); ObIconPopup *icon_popup_new(); void icon_popup_free(ObIconPopup *self); -void icon_popup_show(ObIconPopup *self, - gchar *text, const struct _ObClientIcon *icon); +#define icon_popup_show(s, t, i) icon_popup_delay_show((s),0,(t),(i)) +void icon_popup_delay_show(ObIconPopup *self, gulong usec, + gchar *text, const struct _ObClientIcon *icon); #define icon_popup_hide(p) popup_hide((p)->popup) #define icon_popup_position(p, g, x, y) popup_position((p)->popup,(g),(x),(y)) #define icon_popup_width(p, w) popup_width((p)->popup,(w)) @@ -115,7 +118,9 @@ void icon_popup_show(ObIconPopup *self, ObPagerPopup *pager_popup_new(); void pager_popup_free(ObPagerPopup *self); -void pager_popup_show(ObPagerPopup *self, gchar *text, guint desk); +#define pager_popup_show(s, t, d) paper_popup_delay_show((s),0,(t),(d;2D)) +void pager_popup_delay_show(ObPagerPopup *self, gulong usec, + gchar *text, guint desk); #define pager_popup_hide(p) popup_hide((p)->popup) #define pager_popup_position(p, g, x, y) popup_position((p)->popup,(g),(x),(y)) #define pager_popup_width(p, w) popup_width((p)->popup,(w)) |
