--- sourceforge.net/trunk/rdesktop/xwin.c 2002/09/15 12:36:55 159 +++ sourceforge.net/trunk/rdesktop/xwin.c 2002/09/15 12:42:26 160 @@ -351,6 +351,9 @@ height = HeightOfScreen(screen); } + /* make sure width is a multiple of 4 */ + width = (width + 3) & ~3; + xkeymap_init(); return True; }