Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revert getstate change. made windows disappear.
[spectrwm.git]
/
spectrwm.c
diff --git
a/spectrwm.c
b/spectrwm.c
index
e682774
..
c8daa81
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-1988,6
+1988,7
@@
uint16_t
getstate(xcb_window_t w)
{
uint16_t result = 0;
getstate(xcb_window_t w)
{
uint16_t result = 0;
+ uint16_t *pv;
xcb_get_property_cookie_t c;
xcb_get_property_reply_t *r;
xcb_get_property_cookie_t c;
xcb_get_property_reply_t *r;
@@
-1995,7
+1996,8
@@
getstate(xcb_window_t w)
r = xcb_get_property_reply(conn, c, NULL);
if (r) {
r = xcb_get_property_reply(conn, c, NULL);
if (r) {
- result = *((uint16_t *)xcb_get_property_value(r));
+ pv = (uint16_t *)xcb_get_property_value(r);
+ result = *pv;
free(r);
}
free(r);
}