![]() ![]() Just catch the KeyPress event and test the presence of the XK_Escape code. ![]() This is the simplest way to stop the app. Here is the full source code of a simple X11 app that creates a X window and displays some basic information about the system. Then using X11 API can be an interesting solution if you need to quickly test an piece of code under Linux and Max OS X (it’s my case…).Īnd nice news, the compilation has the same syntax under both operating systems. Desktop environments like KDE or Gnome are built on top of X11. According to this page, X11 is an option under Mac OS X (on my Lion-based system, X11 is available by default). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |