* @return <code>true</code> if the message was successfully sent to the window; <code>false</code> otherwise
*/
public static boolean setFullScreenWindow(Window w, boolean fullScreen) {
// Use the JNA platform X11 binding
X11 x = X11.INSTANCE;
Display display = null;
try {
// Open the display
display = x.XOpenDisplay(null);
// Send the message
int result = sendClientMessage(display, Native.getWindowID(w), "_NET_WM_STATE", new NativeLong(fullScreen ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE), x.XInternAtom(display, "_NET_WM_STATE_FULLSCREEN", false));