summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-04-17 13:57:07 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-04-17 13:57:07 +0000
commitb8bb34fcbff55d20b6ee7373685b86c7d5a8284d (patch)
treedc4f14cfef0ce0426227d15b6eb2f53e5d260780
parent974feb6c52be144941bb9b8802ae8212f498d448 (diff)
mechanical xu_{get,set}state -> xu_{get,set}_wm_state change
-rw-r--r--app/cwm/calmwm.h6
-rw-r--r--app/cwm/client.c12
-rw-r--r--app/cwm/xutil.c6
3 files changed, 12 insertions, 12 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h
index b4140e9e4..7e62548ea 100644
--- a/app/cwm/calmwm.h
+++ b/app/cwm/calmwm.h
@@ -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: calmwm.h,v 1.190 2013/04/17 13:52:20 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.191 2013/04/17 13:57:06 okan Exp $
*/
#ifndef _CALMWM_H_
@@ -467,7 +467,7 @@ void xu_configure(struct client_ctx *);
void xu_getatoms(void);
unsigned long xu_getcolor(struct screen_ctx *, char *);
int xu_getprop(Window, Atom, Atom, long, u_char **);
-int xu_getstate(Window, int *);
+int xu_get_wm_state(Window, int *);
int xu_getstrprop(Window, Atom, char **);
void xu_key_grab(Window, int, int);
void xu_key_ungrab(Window, int, int);
@@ -477,7 +477,7 @@ int xu_ptr_regrab(int, Cursor);
void xu_ptr_setpos(Window, int, int);
void xu_ptr_ungrab(void);
void xu_sendmsg(Window, Atom, long);
-void xu_setstate(Window win, int);
+void xu_set_wm_state(Window win, int);
void xu_xorcolor(XRenderColor, XRenderColor,
XRenderColor *);
diff --git a/app/cwm/client.c b/app/cwm/client.c
index 117018411..48d9063d3 100644
--- a/app/cwm/client.c
+++ b/app/cwm/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);
}
diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c
index 84b564ec9..49332c54f 100644
--- a/app/cwm/xutil.c
+++ b/app/cwm/xutil.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: xutil.c,v 1.55 2013/04/17 13:52:20 okan Exp $
+ * $OpenBSD: xutil.c,v 1.56 2013/04/17 13:57:06 okan Exp $
*/
#include <sys/param.h>
@@ -203,7 +203,7 @@ xu_getstrprop(Window win, Atom atm, char **text) {
}
int
-xu_getstate(Window win, int *state)
+xu_get_wm_state(Window win, int *state)
{
long *p = NULL;
@@ -218,7 +218,7 @@ xu_getstate(Window win, int *state)
}
void
-xu_setstate(Window win, int state)
+xu_set_wm_state(Window win, int state)
{
long dat[2];