aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--group.c6
-rw-r--r--xevents.c4
2 files changed, 4 insertions, 6 deletions
diff --git a/group.c b/group.c
index 0cb831c..ba84956 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: group.c,v 1.56 2012/05/16 01:10:11 okan Exp $
+ * $OpenBSD: group.c,v 1.57 2012/05/16 21:57:21 okan Exp $
*/
#include <sys/param.h>
@@ -482,7 +482,7 @@ group_update_names(struct screen_ctx *sc)
Atom type_ret;
int format_ret, i = 0, nstrings = 0, n, setnames = 0;
unsigned long bytes_after, num_ret;
-
+
if (XGetWindowProperty(X_Dpy, sc->rootwin, _NET_DESKTOP_NAMES, 0,
0xffffff, False, UTF8_STRING, &type_ret, &format_ret,
&num_ret, &bytes_after, &prop_ret) == Success &&
@@ -544,7 +544,7 @@ group_set_names(struct screen_ctx *sc)
tlen -= slen;
q += slen;
}
-
+
XChangeProperty(X_Dpy, sc->rootwin, _NET_DESKTOP_NAMES,
UTF8_STRING, 8, PropModeReplace, p, len);
}
diff --git a/xevents.c b/xevents.c
index 93b4b13..73e5df0 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.59 2012/05/16 01:09:17 okan Exp $
+ * $OpenBSD: xevents.c,v 1.60 2012/05/16 21:57:21 okan Exp $
*/
/*
@@ -206,12 +206,10 @@ xev_handle_propertynotify(XEvent *ee)
if (sc->rootwin == e->window)
goto test;
return;
-
test:
if (e->atom == _NET_DESKTOP_NAMES)
group_update_names(sc);
}
-
}
static void