/[rdesktop]/sourceforge.net/trunk/rdesktop/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 157 by matthewc, Sun Sep 15 11:39:16 2002 UTC revision 164 by astrand, Mon Sep 16 13:19:54 2002 UTC
# Line 351  ui_init() Line 351  ui_init()
351                  height = HeightOfScreen(screen);                  height = HeightOfScreen(screen);
352          }          }
353    
354            /* make sure width is a multiple of 4 */
355            width = (width + 3) & ~3;
356    
357          xkeymap_init();          xkeymap_init();
358          return True;          return True;
359  }  }
# Line 454  xwin_toggle_fullscreen() Line 457  xwin_toggle_fullscreen()
457          int newwidth, newheight;          int newwidth, newheight;
458    
459          fullscreen = !fullscreen;          fullscreen = !fullscreen;
460          newwidth  = fullscreen ? WidthOfScreen(screen) : width;          newwidth = fullscreen ? WidthOfScreen(screen) : width;
461          newheight = fullscreen ? HeightOfScreen(screen) : height;          newheight = fullscreen ? HeightOfScreen(screen) : height;
462    
463          XUnmapWindow(display, wnd);          XUnmapWindow(display, wnd);
# Line 568  xwin_process_events() Line 571  xwin_process_events()
571                                                 MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);                                                 MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
572                                  break;                                  break;
573    
                         case FocusIn:  
                                 /* fall through */  
574                          case EnterNotify:                          case EnterNotify:
575                                  if (grab_keyboard)                                  if (grab_keyboard)
576                                          XGrabKeyboard(display, wnd, True,                                          XGrabKeyboard(display, wnd, True,
577                                                        GrabModeAsync, GrabModeAsync, CurrentTime);                                                        GrabModeAsync, GrabModeAsync, CurrentTime);
578                                  break;                                  break;
579    
                         case FocusOut:  
                                 xwin_reset_keys();  
                                 /* fall through */  
580                          case LeaveNotify:                          case LeaveNotify:
581                                  if (grab_keyboard)                                  if (grab_keyboard)
582                                          XUngrabKeyboard(display, CurrentTime);                                          XUngrabKeyboard(display, CurrentTime);
583                                  break;                                  break;
584    
585                            case FocusOut:
586                                    xwin_reset_keys();
587                                    break;
588    
589                          case Expose:                          case Expose:
590                                  XCopyArea(display, backstore, wnd, gc,                                  XCopyArea(display, backstore, wnd, gc,
591                                            xevent.xexpose.x, xevent.xexpose.y,                                            xevent.xexpose.x, xevent.xexpose.y,

Legend:
Removed from v.157  
changed lines
  Added in v.164

  ViewVC Help
Powered by ViewVC 1.1.26