I want to run a pro开发者_运维技巧gram in linux without the X borders. It's a C++ program that uses a graphical library called GRX and when it is launched it runs inside a window.
Is there any way to "force" an app not to run in windowed mode? An exec, comand or something?
There are different domains where you can decide if your application runs in fullscreen mode or not.
1) The "X-Borders" are drawn by your window manager. An application running on your X-Server without a window manager won't have any borders. If theres a fullscreen mode for the application depends on the window manager itself.
For example in my i3 you can use the key combination ALT + F to switch to fullscreen mode.
2) The used graphic driver behind your library.
GRX supports different drivers and you can set them with the following function:
int GrSetDriver(char *drvspec);
The SDL driver supports a windowed mode and a fullscreen mode. So
sdl::fs
should set your application in fullscreen mode.
See the manual for more information:
http://grx.gnu.de/grx248um.html#Setting-the-graphics-driver
精彩评论