aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2019-08-13 18:45:38 +0000
committerWolfgang Müller2019-08-24 15:15:22 +0200
commit9eb51ff19fe22b4f4916bb7fcf6cf4e5c658df6e (patch)
tree5bbdb8b941bcff6e4502ea6a6dc598b81bfd2fbd
parentca09b5858e56efa301bb074f777310d2fd7b2386 (diff)
downloadcwm-9eb51ff19fe22b4f4916bb7fcf6cf4e5c658df6e.tar.gz
Because cwm warps the pointer during a client move (to stay within the client), there's a window of time where an expose or enternotify event will get generated for a lower client; use a hammer and drain events after keyboard move/resize, until such a time that cwm doesn't warp the pointer. Behavior noticed by kn.
ok kn@
Diffstat (limited to '')
-rw-r--r--kbfunc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 57f2180..7b69066 100644
--- a/kbfunc.c
+++ b/kbfunc.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: kbfunc.c,v 1.165 2019/03/07 14:28:17 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.166 2019/08/13 18:45:38 okan Exp $
*/
#include <sys/types.h>
@@ -142,6 +142,7 @@ kbfunc_client_move_kb(void *ctx, struct cargs *cargs)
client_move(cc);
client_ptr_inbound(cc, 1);
+ XSync(X_Dpy, True);
}
static void
@@ -230,6 +231,7 @@ kbfunc_client_resize_kb(void *ctx, struct cargs *cargs)
client_resize(cc, 1);
client_ptr_inbound(cc, 1);
+ XSync(X_Dpy, True);
}
static void