CVS: rdesktop xkeymap.c,1.69,1.70
Peter Åstrand <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32483 Modified Files: xkeymap.c Log Message: At XK_Num_Lock events, use RDP_INPUT_SYNCHRONIZE, if using numlock sync. Index: xkeymap.c =================================================================== RCS file: /cvsroot/rdesktop/rdesktop/xkeymap.c,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -d -r1.69 -r1.70 *** xkeymap.c 27 Apr 2005 10:05:43 -0000 1.69 --- xkeymap.c 7 Jun 2005 11:21:53 -0000 1.70 *************** *** 373,381 **** return True; break; case XK_Num_Lock: ! /* FIXME: We might want to do RDP_INPUT_SYNCHRONIZE here, if g_numlock_sync */ ! if (!g_numlock_sync) ! /* Inhibit */ ! return True; break; --- 373,385 ---- return True; break; + case XK_Num_Lock: ! /* Synchronize on key release */ ! if (g_numlock_sync && !pressed) ! rdp_send_input(0, RDP_INPUT_SYNCHRONIZE, 0, ! ui_get_numlock_state(read_keyboard_state()), 0); ! ! /* Inhibit */ ! return True; break; ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20