This commit is contained in:
Nishi 2025-12-25 05:15:18 +09:00
commit fecd4655f1
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 10 additions and 1 deletions

View file

@ -410,7 +410,13 @@ void loop_x(void) {
}
}
if(w != None) XRaiseWindow(xdisplay, w);
if(w == None) {
XRaiseWindow(xdisplay, t);
set_focus(t);
} else {
XRaiseWindow(xdisplay, w);
}
XAllowEvents(xdisplay, ReplayPointer, CurrentTime);
} else if(ev.type == MotionNotify && ev.xmotion.subwindow != None) {
@ -522,6 +528,8 @@ void loop_x(void) {
arrput(windows, w);
XMapWindow(xdisplay, ev.xmaprequest.window);
if(!xwa.override_redirect) save(ev.xmaprequest.window);
continue;
}

View file

@ -9,6 +9,7 @@
<Application Name="Applications" />
<Separator />
<Execute Name="Terminal">xterm</Execute>
<Execute Name=""></Execute>
</Menu>
</StartButton>