summaryrefslogtreecommitdiff
path: root/app/cwm/kbfunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2020-01-21 15:50:04 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2020-01-21 15:50:04 +0000
commit3c9de4a7e13712b5696750bbd59a18c848742022 (patch)
tree5e703b73a7b18895f2d6a295a892bbacd98a50b6 /app/cwm/kbfunc.c
parentedca1cec10a02703bade4feb4c0b0111aa72b62a (diff)
Ensure the pointer stays within client bounds after a window 'snap' (to edge).
reported by Stefan Hagen.
Diffstat (limited to 'app/cwm/kbfunc.c')
-rw-r--r--app/cwm/kbfunc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c
index 7b6906643..48404874c 100644
--- a/app/cwm/kbfunc.c
+++ b/app/cwm/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.166 2019/08/13 18:45:38 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.167 2020/01/21 15:50:03 okan Exp $
*/
#include <sys/types.h>
@@ -322,6 +322,7 @@ kbfunc_client_snap(void *ctx, struct cargs *cargs)
}
}
client_move(cc);
+ client_ptr_inbound(cc, 1);
}
void