commit 316f01055d948eda06fc2897af313eb39170008a
parent 7b77825ef35fe40255e744cbc31c265aeef2d9bc
Author: Lucas de Sena <lucas@seninha.org>
Date: Sat, 22 Apr 2023 08:09:10 -0300
do not send to desk on containerincrmove; fix #40
Instead of calling containersendtodesk to update the monitor (which
is changing) and the desktop (which remains the same), just set the
container's monitor.
This avoids the calling containerplace to reposition the container
in the monitor.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xcontainer.c b/xcontainer.c
@@ -1206,7 +1206,7 @@ containerincrmove(struct Container *c, int x, int y)
if (!c->issticky) {
monto = getmon(c->nx + c->nw / 2, c->ny + c->nh / 2);
if (monto != NULL && monto != c->mon) {
- (void)containersendtodesk(c, monto, monto->seldesk);
+ c->mon = monto;
if (wm.focused == c) {
deskupdate(monto, monto->seldesk);
}