diff options
author | okan <okan> | 2013-04-17 13:57:06 +0000 |
---|---|---|
committer | okan <okan> | 2013-04-17 13:57:06 +0000 |
commit | 006a29e61773b02855e3c4e4a85d0e05f2837c6e (patch) | |
tree | d6e1222cc04175db4ba37044cd02c6f63327cdb1 /client.c | |
parent | 302690624e29eddb506e4a377b59eac029128f3f (diff) | |
download | cwm-006a29e61773b02855e3c4e4a85d0e05f2837c6e.tar.gz cwm-006a29e61773b02855e3c4e4a85d0e05f2837c6e.tar.xz cwm-006a29e61773b02855e3c4e4a85d0e05f2837c6e.zip |
mechanical xu_{get,set}state -> xu_{get,set}_wm_state change
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client.c b/client.c index 01f4347..c8d3801 100644 --- a/client.c +++ b/client.c @@ -105,14 +105,14 @@ client_new(Window win, struct screen_ctx *sc, int mapped) if ((wmhints = XGetWMHints(X_Dpy, cc->win)) != NULL) { if (wmhints->flags & StateHint) { cc->state = wmhints->initial_state; - xu_setstate(cc->win, cc->state); + xu_set_wm_state(cc->win, cc->state); } XFree(wmhints); } } client_draw_border(cc); - if (xu_getstate(cc->win, &state) < 0) + if (xu_get_wm_state(cc->win, &state) < 0) state = NormalState; XSelectInput(X_Dpy, cc->win, ColormapChangeMask | EnterWindowMask | @@ -153,7 +153,7 @@ client_delete(struct client_ctx *cc) XGrabServer(X_Dpy); cc->state = WithdrawnState; - xu_setstate(cc->win, cc->state); + xu_set_wm_state(cc->win, cc->state); XRemoveFromSaveSet(X_Dpy, cc->win); XSync(X_Dpy, False); @@ -454,7 +454,7 @@ client_hide(struct client_ctx *cc) cc->active = 0; cc->flags |= CLIENT_HIDDEN; cc->state = IconicState; - xu_setstate(cc->win, cc->state); + xu_set_wm_state(cc->win, cc->state); if (cc == client_current()) client_none(cc->sc); @@ -467,7 +467,7 @@ client_unhide(struct client_ctx *cc) cc->flags &= ~CLIENT_HIDDEN; cc->state = NormalState; - xu_setstate(cc->win, cc->state); + xu_set_wm_state(cc->win, cc->state); client_draw_border(cc); } |