mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-07-25 17:21:56 -07:00
sowm: Don't force window location when the window wants to be put elsewhere.
This commit is contained in:
4
sowm.c
4
sowm.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user