diff options
-rw-r--r-- | group.c | 6 | ||||
-rw-r--r-- | xevents.c | 4 |
2 files changed, 4 insertions, 6 deletions
@@ -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); } @@ -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 |