tAdd ATTR_D attribute to retrieve window color depth - libwm - X windows manipulation library
(HTM) git clone git://z3bra.org/libwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e399cf6a188e5663ebc9ce88f9da7621eee0e675
(DIR) parent d10dc9ebb2ef7eaed2bc48331b50e808354beebb
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 7 Sep 2021 13:39:41 +0200
Add ATTR_D attribute to retrieve window color depth
Diffstat:
M libwm.c | 3 +++
M wm.h | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/libwm.c b/libwm.c
t@@ -171,6 +171,9 @@ wm_get_attribute(xcb_window_t wid, int attr)
case ATTR_B:
attr = r->border_width;
break;
+ case ATTR_D:
+ attr = r->depth;
+ break;
}
free(r);
(DIR) diff --git a/wm.h b/wm.h
t@@ -40,6 +40,7 @@ enum {
ATTR_B = 1 << 4,
ATTR_M = 1 << 5,
ATTR_I = 1 << 6,
+ ATTR_D = 1 << 7,
ATTR_MAX
};