aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2011-05-13 12:53:19 +0000
committerokan2011-05-13 12:53:19 +0000
commit0fe3cfb49228aaf05574cafa931c3938b83394e5 (patch)
treeb618274395468dc84dbd14cfa17d1980bb1747f9
parent15f96b4078c55dd7b425fe9e9a98f515c5efe14d (diff)
downloadcwm-0fe3cfb49228aaf05574cafa931c3938b83394e5.tar.gz
remove left over XSync; ok oga@
Diffstat (limited to '')
-rw-r--r--mousefunc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/mousefunc.c b/mousefunc.c
index cb99a66..6b50de6 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.25 2011/05/11 13:53:51 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.26 2011/05/13 12:53:19 okan Exp $
*/
#include <sys/param.h>
@@ -116,10 +116,8 @@ mousefunc_window_resize(struct client_ctx *cc, void *arg)
}
break;
case ButtonRelease:
- if (time) {
- XSync(X_Dpy, False);
+ if (time)
client_resize(cc);
- }
XUnmapWindow(X_Dpy, sc->menuwin);
XReparentWindow(X_Dpy, sc->menuwin, sc->rootwin, 0, 0);
xu_ptr_ungrab();
@@ -171,10 +169,8 @@ mousefunc_window_move(struct client_ctx *cc, void *arg)
}
break;
case ButtonRelease:
- if (time) {
- XSync(X_Dpy, False);
+ if (time)
client_move(cc);
- }
xu_ptr_ungrab();
return;
}