aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client.c5
-rw-r--r--mousefunc.c12
2 files changed, 4 insertions, 13 deletions
diff --git a/client.c b/client.c
index 1004390..5b3eb5c 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.138 2013/10/19 00:24:54 okan Exp $
+ * $OpenBSD: client.c,v 1.139 2013/10/19 18:59:22 okan Exp $
*/
#include <sys/param.h>
@@ -398,8 +398,6 @@ client_resize(struct client_ctx *cc, int reset)
xu_ewmh_set_net_wm_state(cc);
}
- client_draw_border(cc);
-
XMoveResizeWindow(X_Dpy, cc->win, cc->geom.x,
cc->geom.y, cc->geom.w, cc->geom.h);
client_config(cc);
@@ -495,7 +493,6 @@ client_unhide(struct client_ctx *cc)
cc->flags &= ~CLIENT_HIDDEN;
cc->state = NormalState;
xu_set_wm_state(cc->win, cc->state);
- client_draw_border(cc);
}
void
diff --git a/mousefunc.c b/mousefunc.c
index 12a0f81..b1fe7cf 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -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: mousefunc.c,v 1.56 2013/07/09 01:24:49 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.57 2013/10/19 18:59:22 okan Exp $
*/
#include <sys/param.h>
@@ -88,12 +88,9 @@ mousefunc_client_resize(struct client_ctx *cc, void *arg)
mousefunc_sweep_draw(cc);
for (;;) {
- XMaskEvent(X_Dpy, MOUSEMASK|ExposureMask, &ev);
+ XMaskEvent(X_Dpy, MOUSEMASK, &ev);
switch (ev.type) {
- case Expose:
- client_draw_border(cc);
- break;
case MotionNotify:
mousefunc_sweep_calc(cc, x, y,
ev.xmotion.x_root, ev.xmotion.y_root);
@@ -143,12 +140,9 @@ mousefunc_client_move(struct client_ctx *cc, void *arg)
xu_ptr_getpos(cc->win, &px, &py);
for (;;) {
- XMaskEvent(X_Dpy, MOUSEMASK|ExposureMask, &ev);
+ XMaskEvent(X_Dpy, MOUSEMASK, &ev);
switch (ev.type) {
- case Expose:
- client_draw_border(cc);
- break;
case MotionNotify:
cc->geom.x = ev.xmotion.x_root - px - cc->bwidth;
cc->geom.y = ev.xmotion.y_root - py - cc->bwidth;