File rdesktop-1.5.0-fs-fix-1.dif of Package rdesktop
Index: xwin.c
===================================================================
--- xwin.c.orig
+++ xwin.c
@@ -21,6 +21,7 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+#include <X11/Xatom.h>
#include <X11/Xproto.h>
#include <unistd.h>
#include <sys/time.h>
@@ -1968,7 +1969,8 @@ get_window_attribs(XSetWindowAttributes
attribs->background_pixel = WhitePixelOfScreen(g_screen);
attribs->border_pixel = WhitePixelOfScreen(g_screen);
attribs->backing_store = g_ownbackstore ? NotUseful : Always;
- attribs->override_redirect = g_fullscreen;
+ /* attribs->override_redirect = g_fullscreen; */
+ attribs->override_redirect = 0;
attribs->colormap = g_xcolmap;
}
@@ -2017,6 +2019,17 @@ ui_create_window(void)
CWBackPixel | CWBackingStore | CWOverrideRedirect | CWColormap |
CWBorderPixel, &attribs);
+ if (g_fullscreen)
+ {
+ Atom state;
+
+ state = XInternAtom (g_display, "_NET_WM_STATE_FULLSCREEN", 0);
+ XChangeProperty (g_display, g_wnd,
+ XInternAtom (g_display, "_NET_WM_STATE", 0),
+ XA_ATOM, 32, PropModeReplace,
+ (unsigned char *) &state, 1);
+ }
+
if (g_gc == NULL)
{
g_gc = XCreateGC(g_display, g_wnd, 0, NULL);