Cross-posting from StackOverflow.
I have a GTK3 application (
GtkApplication based) bound to a machinery on a touch screen without keyboard or mouse. In short that app should run in a locked maximized window: no other program must be shown. Not sure it is relevant but the window manager (that I need to show various dialogs) is xfwm4.
The problem is the user can drag or double click on the header and the window loses its original maximized status.
This is what I tried so far:
The obvious code: unfortunately the latter demaximizes the window.
It strips away the window header.
Ugly as hell and the latter shrinks the window to its original size.
Quite ugly but almost worked… it removes my application menu though.
Still hackish but… The user can still drag the window from the application menu though.
- Force the size request to the display size
Ugly: it effectively locks the window size but does not prevent the dragging of the window.
It just seems to ignore my handler.
- Various combination of event masks/manipulations on the
No matter what I tried: the damned thing seems to don’t care.
Any chance to lock the window or to disable the resizing and repositioning behavior triggered by the window header?