aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2013-06-10 21:37:30 +0000
committerokan2013-06-10 21:37:30 +0000
commitd4e68ce6f6bb6effbb27c5607734c3da30e7baa9 (patch)
tree037de4d342ccf0585c2808032e762294c46cade1 /xutil.c
parent047b95bd58c952fb5fbf9a6f97782a916cc9fe87 (diff)
downloadcwm-d4e68ce6f6bb6effbb27c5607734c3da30e7baa9.tar.gz
move synthetic responses and have client_msg only work with WM_PROTOCOLS,
since that's all ClientMessageEvent is for anyway.
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/xutil.c b/xutil.c
index 719afa8..53e75a9 100644
--- a/xutil.c
+++ b/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.68 2013/05/27 23:20:45 okan Exp $
+ * $OpenBSD: xutil.c,v 1.69 2013/06/10 21:37:30 okan Exp $
*/
#include <sys/param.h>
@@ -105,41 +105,6 @@ xu_key_grab(Window win, u_int mask, KeySym keysym)
True, GrabModeAsync, GrabModeAsync);
}
-void
-xu_configure(struct client_ctx *cc)
-{
- XConfigureEvent ce;
-
- ce.type = ConfigureNotify;
- ce.event = cc->win;
- ce.window = cc->win;
- ce.x = cc->geom.x;
- ce.y = cc->geom.y;
- ce.width = cc->geom.w;
- ce.height = cc->geom.h;
- ce.border_width = cc->bwidth;
- ce.above = None;
- ce.override_redirect = 0;
-
- XSendEvent(X_Dpy, cc->win, False, StructureNotifyMask, (XEvent *)&ce);
-}
-
-void
-xu_sendmsg(Window win, Atom type, Atom atm)
-{
- XClientMessageEvent e;
-
- bzero(&e, sizeof(e));
- e.type = ClientMessage;
- e.window = win;
- e.message_type = type;
- e.format = 32;
- e.data.l[0] = atm;
- e.data.l[1] = CurrentTime;
-
- XSendEvent(X_Dpy, win, False, 0L, (XEvent *)&e);
-}
-
int
xu_getprop(Window win, Atom atm, Atom type, long len, u_char **p)
{