On Tue, 27 Jun 2023 15:51:16 +0300 Riza Dindir <riza.din...@gmail.com> said:
> Hello All, > > I want to run two applications on X client, and have an xinitrc file > that starts a GTK application and another that starts xterm. Like so > > my-gui-app & > xterm > > I do not want to use a window manager for this. > > When I start the client with startx, it displays both of the > applications but the xterm does not have focus. > > If I click on the xterm window, the focus is not given to the xterm window. > > Is this default behavior? How can I focus on the xterm window? Using a > mouse? Or some other way? this is what window managers do. i suggest you run a window manager. focus policy is handled by things like window managers. you won't have to run something heavy-weight. there are plenty of very small wm's that are simpler and smaller than even xterm. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- Carsten Haitzler - ras...@rasterman.com