[Xcb-commit] icccm

Julien Danjou jdanjou at kemper.freedesktop.org
Thu Jul 24 04:48:27 PDT 2008


 icccm/icccm.c     |   12 ++++++++++++
 icccm/xcb_icccm.h |    2 ++
 2 files changed, 14 insertions(+)

New commits:
commit fe8380a060b5be988ba96a57c48d46258ab0fb14
Author: Julien Danjou <julien at danjou.info>
Date:   Thu Jul 24 10:05:18 2008 +0200

    icccm: add urgency hint functions
    
    Signed-off-by: Julien Danjou <julien at danjou.info>

diff --git a/icccm/icccm.c b/icccm/icccm.c
index 2a908ff..ff89d3e 100644
--- a/icccm/icccm.c
+++ b/icccm/icccm.c
@@ -557,6 +557,12 @@ xcb_wm_hints_get_window_group(xcb_wm_hints_t *hints)
 }
 
 uint32_t
+xcb_wm_hints_get_urgency(xcb_wm_hints_t *hints)
+{
+       return (hints->flags & XCB_WM_X_URGENCY_HINT);
+}
+
+uint32_t
 xcb_wm_hints_get_flags(xcb_wm_hints_t *hints)
 {
         return hints->flags;
@@ -638,6 +644,12 @@ xcb_wm_hints_set_window_group(xcb_wm_hints_t *hints, xcb_window_t window_group)
 }
 
 void
+xcb_wm_hints_set_urgency(xcb_wm_hints_t *hints)
+{
+        hints->flags |= XCB_WM_X_URGENCY_HINT;
+}
+
+void
 xcb_set_wm_hints_checked (xcb_connection_t *c,
                           xcb_window_t      window,
                           xcb_wm_hints_t   *hints)
diff --git a/icccm/xcb_icccm.h b/icccm/xcb_icccm.h
index 8e1bcda..0f01b50 100644
--- a/icccm/xcb_icccm.h
+++ b/icccm/xcb_icccm.h
@@ -243,6 +243,7 @@ xcb_pixmap_t xcb_wm_hints_get_icon_pixmap  (xcb_wm_hints_t *hints);
 xcb_pixmap_t xcb_wm_hints_get_icon_mask    (xcb_wm_hints_t *hints);
 xcb_window_t xcb_wm_hints_get_icon_window  (xcb_wm_hints_t *hints);
 xcb_window_t xcb_wm_hints_get_window_group (xcb_wm_hints_t *hints);
+uint32_t     xcb_wm_hints_get_urgency      (xcb_wm_hints_t *hints);
 
 uint32_t xcb_wm_hints_get_flags(xcb_wm_hints_t *hints);
 void xcb_wm_hints_set_flags(xcb_wm_hints_t *hints, uint32_t flags);
@@ -257,6 +258,7 @@ void xcb_wm_hints_set_icon_pixmap  (xcb_wm_hints_t *hints, xcb_pixmap_t icon_pix
 void xcb_wm_hints_set_icon_mask    (xcb_wm_hints_t *hints, xcb_pixmap_t icon_mask);
 void xcb_wm_hints_set_icon_window  (xcb_wm_hints_t *hints, xcb_window_t icon_window);
 void xcb_wm_hints_set_window_group (xcb_wm_hints_t *hints, xcb_window_t window_group);
+void xcb_wm_hints_set_urgency      (xcb_wm_hints_t *hints);
 
 void xcb_set_wm_hints_checked (xcb_connection_t *c,
                                xcb_window_t      window,


More information about the xcb-commit mailing list