34 lines
809 B
Diff
34 lines
809 B
Diff
Upstream is dead and they haven't made a new release with this in it.
|
|
|
|
diff --git libwm.c libwm.c
|
|
index 247326d..b9e689a 100644
|
|
--- libwm.c
|
|
+++ libwm.c
|
|
@@ -344,3 +344,12 @@ wm_set_focus(xcb_window_t wid)
|
|
xcb_flush(conn);
|
|
return 1;
|
|
}
|
|
+
|
|
+int
|
|
+wm_reg_event(xcb_window_t wid, uint32_t mask)
|
|
+{
|
|
+ uint32_t val[] = { mask };
|
|
+
|
|
+ xcb_change_window_attributes(conn, wid, XCB_CW_EVENT_MASK, val);
|
|
+ return 0;
|
|
+}
|
|
diff --git wm.h wm.h
|
|
index dce6279..c6b93e2 100644
|
|
--- wm.h
|
|
+++ wm.h
|
|
@@ -185,4 +185,10 @@ int wm_resize(xcb_window_t wid, int mode, int w, int h);
|
|
*/
|
|
int wm_restack(xcb_window_t wid, uint32_t mode);
|
|
|
|
+/*
|
|
+ * Register the given event(s) on the window.
|
|
+ * Multiple events can be registered by ORing them together
|
|
+ */
|
|
+int wm_reg_event(xcb_window_t wid, uint32_t mask);
|
|
+
|
|
#endif /* __LIBWM_H__ */
|