What is the trick to open a non-decorated fullscreen window on Ubuntu? I used to change the _NET_WM_STATE property to _NET_WM_STATE_FULLSCREEN to achieve this but while working fine on KDE it doesn't seem to work on Ubuntu (GNOME; tested with 12.04 LTS). The launcher on the left and the title bar are still there and appear above my non-decorated fullscreen window which is not what I want.
When switching to fullscreen mode in Firefox, however, Firefox's fullscreen window covers the complete screen including launcher panel and title bar so it must be possible somehow to open windows that cover the entire screen, including Ubuntu's launcher and title bar.
Could anybody explain how to achieve this behaviour using plain X11 without any middleware?
Thanks!
Gnome by default sets window max size such that it does not cover the panel. It won't resize your window beyond that size, unless you remove the corresponding hint in
WM_NORMAL_HINTS
, or set both min size and max size to your screen dimensions.See e.g. here or here.
This will not hurt you on KDE or any other DE either.
Remember to reset min size when you exit full screen mode.
I've found the problem. Setting _NET_WM_STATE_FULLSCREEN is not enough. One should also set the override_redirect attribute to TRUE to prevent the window manager from intercepting configure and map requests which seems to be exactly what GNOME is doing on Ubuntu by putting the launcher panel and title bar over my fullscreen window. Setting override_redirect to TRUE prevents this.