aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2013-04-17 13:57:06 +0000
committerokan2013-04-17 13:57:06 +0000
commit1474b1efa279e0271abd1fba7efd80869ac96175 (patch)
tree8a975d8d1ff2f634d44ea8be33a6f8aad6dea2b5 /client.c
parent85984c35a322bce1ae3c3377e4c36b7683891ad3 (diff)
downloadcwm-1474b1efa279e0271abd1fba7efd80869ac96175.tar.gz
mechanical xu_{get,set}state -> xu_{get,set}_wm_state change
Diffstat (limited to 'client.c')
-rw-r--r--client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/client.c b/client.c
index 1170184..48d9063 100644
--- a/client.c
+++ b/client.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: client.c,v 1.126 2013/04/17 13:52:20 okan Exp $
+ * $OpenBSD: client.c,v 1.127 2013/04/17 13:57:06 okan Exp $
*/
#include <sys/param.h>
@@ -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);
}