From 1fd3f34c87a2c32219e064c13d85fc127c21fd47 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 2 Jun 2023 19:24:41 -0400 Subject: [PATCH] [dwm] dwm.c: do not warp to floating windows the inkscape shortcut manager works better like this. otherwise when we insert text the cursor warps into the textbox, and then we paste the rendered text where the textbox was. we want to preserve the cursor position --- suckless/dwm/dwm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/suckless/dwm/dwm.c b/suckless/dwm/dwm.c index f6de5a1..7e87748 100644 --- a/suckless/dwm/dwm.c +++ b/suckless/dwm/dwm.c @@ -2313,6 +2313,9 @@ warp(const Client *c) return; } + if (c->isfloating) + return; + if (!getrootptr(&x, &y) || (x > c->x - c->bw && y > c->y - c->bw &&