WizardStan
Mega GP Mania
- Joined
- May 24, 2008
- Messages
- 16,731
That doesn't prevent most programs from processing keypresses though. The OS will continue to buffer keyboard events while the input file is still open. When you SIGCONT the program, it reads in all the buffered inputs. There is a solution that Notaz helped find.We could pause the currently running apps with
Code:kill -STOP <pid of foregroundprocess>.
Fullscreen SDL applications don't have a window, they draw directly on the frame buffer. Getting the currently active application (and in fact all running PNDs) is a problem solved some time ago.Theoretically we could get the pid by first issuing
Code:xdotool getwindowfocus
which gives us the windowid of the process, that has the focus currently or