The window frame issue... I have suffered it.
I am used to do it on Windows and Mac, but not for Linux yet, so a quick search online gave me how to remove the "chrome" or "decorations" from a window. The logic is the same on all operating systems, more or less.
Surely you need to recompile the player if you want to use Tier 1. Or add something like the code below to your Tier 2 app.
I Just copied and pasted this:
If you want to remove the window border and title bar in a C program on Linux, you can achieve this by manipulating the window properties. Here are some approaches:
1. **Xlib (X Window System)**:
- Use the Xlib library to create a window without decorations (title bar and borders).
- Set the `override_redirect` attribute to `True` to bypass the window manager's decorations.
- Example code snippet:
```c
#include <X11/Xlib.h>
int main() {
Display *display = XOpenDisplay(NULL);
Window window = XCreateSimpleWindow(display, DefaultRootWindow(display), 0, 0, 800, 600, 0, 0, 0);
XSetWindowAttributes attrs;
attrs.override_redirect = True;
XChangeWindowAttributes(display, window, CWOverrideRedirect, &attrs);
XMapWindow(display, window);
XFlush(display);
// Your application logic here
XCloseDisplay(display);
return 0;
}
```
- Compile with: `gcc -o myprogram myprogram.c -lX11`.
2. **GTK (GIMP Toolkit)**:
- GTK provides a higher-level API for creating graphical user interfaces.
- You can create a borderless window using GTK.
- Example code snippet:
```c
#include <gtk/gtk.h>
int main(int argc, char *argv[]) {
gtk_init(&argc, &argv);
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_decorated(GTK_WINDOW(window), FALSE); // Remove decorations
// Your application logic here
gtk_widget_show_all(window);
gtk_main();
return 0;
}
```
- Compile with: `gcc -o myprogram myprogram.c $(pkg-config --cflags --libs gtk+-3.0)`.
Source: Conversation with Bing, 2/2/2024
(1) c - How to remove window title bar completely? - Stack Overflow. https://stackoverflow.com/questions/69771317/how-to-remove-window-title-bar-completely.
(2) scripting - remove title bar of another program - Unix & Linux Stack .... https://unix.stackexchange.com/questions/103356/remove-title-bar-of-another-program.
(3) 10.10 - Remove windows borders (like in lxde) - Ask Ubuntu. https://askubuntu.com/questions/20790/remove-windows-borders-like-in-lxde.
Let's go to Mars