mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-12-05 22:18:39 +00:00
sowm: fix current
This commit is contained in:
1 file changed
+2
-1
@@ -247,11 +247,12 @@ void map_request(XEvent *e) {
|
|||||||
XSelectInput(d, w, StructureNotifyMask|EnterWindowMask);
|
XSelectInput(d, w, StructureNotifyMask|EnterWindowMask);
|
||||||
win_size(w, &wx, &wy, &ww, &wh);
|
win_size(w, &wx, &wy, &ww, &wh);
|
||||||
win_add(w);
|
win_add(w);
|
||||||
win_focus(list->prev);
|
cur = list->prev;
|
||||||
|
|
||||||
if (wx + wy == 0) win_center();
|
if (wx + wy == 0) win_center();
|
||||||
|
|
||||||
XMapWindow(d, w);
|
XMapWindow(d, w);
|
||||||
|
win_focus(list->prev);
|
||||||
}
|
}
|
||||||
|
|
||||||
void run(const Arg arg) {
|
void run(const Arg arg) {
|
||||||
|
|||||||
Reference in new issue
Block a user