summaryrefslogtreecommitdiff
path: root/icccm
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2008-07-24 10:05:18 +0200
committerJulien Danjou <julien@danjou.info>2008-07-24 10:08:17 +0200
commitfe8380a060b5be988ba96a57c48d46258ab0fb14 (patch)
tree132a38d065a32ec0009065ce4868646eca99ac83 /icccm
parent3f5e9c98cc3c4ae59564c0bd3d5d1ded10bb7850 (diff)
icccm: add urgency hint functions
Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'icccm')
-rw-r--r--icccm/icccm.c12
-rw-r--r--icccm/xcb_icccm.h2
2 files changed, 14 insertions, 0 deletions
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,