sowm: Don't force window location when the window wants to be put elsewhere.

This commit is contained in:
Dylan Araps
2019-10-17 11:26:31 +03:00
parent c1f3193b0f
commit fa5526c842

4
sowm.c
View File

@@ -497,8 +497,10 @@ void map_request(XEvent *e) {
Window w = e->xmaprequest.window;
XSelectInput(d, w, StructureNotifyMask|EnterWindowMask);
win_size(w, &wx, &wy, &ww, &wh);
if (wx == 0 && wy == 0) win_center((Arg){.i = w});
win_center((Arg){.i = w});
XMapWindow(d, w);
win_focus(w);
win_add(w);