Commit Graph

121 Commits

Author SHA1 Message Date
Peter Åstrand
c04f1dc310 Implemented support for keyboard "sequences", which makes it possible to send multiple scancodes to the RDP server in response to one X11 keyboard event.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@948 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-02 15:07:35 +00:00
Peter Åstrand
ce2d9a386c At XK_Num_Lock events, use RDP_INPUT_SYNCHRONIZE, if using numlock
sync.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@909 423420c4-83ab-492f-b58f-81f9feb106b5
2005-06-07 11:21:53 +00:00
Michael Gernoth
fba0d4f3fe reactivate fixed caps_lock hack. ctrl-alt-delete works again
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@895 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-27 10:05:43 +00:00
Michael Gernoth
64c892b8c9 disable caps_lock fix.
this killed ctrl-alt-entf. need to llook into that later


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@893 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-25 05:32:23 +00:00
Michael Gernoth
ec643e4718 bump version to 1.4.0
change year in files
add missing docu for updated commandline-flags
update changelog


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@827 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-06 21:11:18 +00:00
Michael Gernoth
11f02bd9dc Don't send shift when CapsLock is on and Ctrl is pressed, too.
Fixes 858618 and 1069927


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@809 423420c4-83ab-492f-b58f-81f9feb106b5
2005-01-23 19:29:31 +00:00
Jay Sorg
a9cad0b9cf proceed more global vars with g_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@709 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-15 22:17:08 +00:00
Peter Åstrand
030f5f0ca1 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@705 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-01 08:06:02 +00:00
Peter Åstrand
2f85428b91 Handle ISO_Level3_Shift as Mode_Switch
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@704 423420c4-83ab-492f-b58f-81f9feb106b5
2004-06-01 08:00:58 +00:00
Michael Gernoth
95d2f76a30 rdp2vnc fixes from Johannes Schindelin <Johannes.Schindelin@gmx.de>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@647 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-10 09:34:52 +00:00
Peter Åstrand
539da0823b Another famous "forgotten break in switch statement" bug...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@552 423420c4-83ab-492f-b58f-81f9feb106b5
2003-12-08 15:28:24 +00:00
Peter Åstrand
454e01b591 Reverted to the old numlock-state code. The numlock sync can be enabled via new option -N
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@551 423420c4-83ab-492f-b58f-81f9feb106b5
2003-12-08 12:01:25 +00:00
Peter Åstrand
d22aeb2015 Resetting Windows key state in reset_modifiers
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@547 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-11 14:01:31 +00:00
Peter Åstrand
ee9d0add63 Re-worked numlock handling: Keeping remote numlock state in sync with local state
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@542 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-03 13:33:35 +00:00
Peter Åstrand
d9019bc77b Kbd fix: Shift was always reset after press
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@469 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-15 08:03:30 +00:00
Peter Åstrand
033b815598 Added my copyright
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@465 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-08 08:27:57 +00:00
Peter Åstrand
bd0f3e2568 Support for (real) Windows keys, if running RDP5.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@451 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-31 19:45:56 +00:00
Jay Sorg
fb2ce8bcf4 more g_ prefix for global vars
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@449 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-27 22:51:33 +00:00
Peter Åstrand
d097a9e44a kbd: Restoring changed remote modifiers after keypress. Fixes problem with shift & altgr 'stuck' down after typing, for example, A
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@448 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-27 09:42:55 +00:00
Jay Sorg
24d1be278a more g_ prefix for global vars
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@446 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-21 23:23:15 +00:00
Erik Forsberg
e83406e100 Changes after running indent-all.sh.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@413 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 11:09:24 +00:00
Jay Sorg
70de4fa1f9 changes so it compiles with g++(mainly for ports)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@375 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-19 21:36:33 +00:00
Peter Åstrand
b5753d0a87 Added rdp2vnc support
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@332 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-20 12:14:13 +00:00
Peter Åstrand
410c48cf5b Prevent access to sys menu in single app mode
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@330 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-18 13:44:27 +00:00
Peter Åstrand
a9e82c744d Indent fix.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@326 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-18 13:02:58 +00:00
Peter Åstrand
bc08b3e62a Only reports "bad keysym" if DEBUG_KBD.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@325 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-12 09:56:13 +00:00
Peter Åstrand
0f0bb5f281 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@317 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-10 12:58:51 +00:00
Peter Åstrand
6c8d2350a2 Bugfix: remote_modifier_state was not updated correctly upon numlock toggle.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@309 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-04 15:54:58 +00:00
Matt Chapman
1e8a4d5279 Fix a few compile warnings.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@299 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-30 11:20:30 +00:00
Matt Chapman
01be712432 Add a warning function, change some errors to warnings, improve a
couple of error messages (not sure whether scewed was meant to be skewed
or screwed :))


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@296 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-28 12:27:28 +00:00
Peter Åstrand
8bb139de37 Increased keymap size, to hold all keysyms.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@289 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-20 09:50:28 +00:00
Peter Åstrand
9bd9507a90 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@259 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-18 15:31:19 +00:00
Matt Chapman
817a83c1d7 Change fullscreen toggle key to Ctrl-Alt-Enter.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@243 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-24 08:48:51 +00:00
Peter Åstrand
ad6efdf43d Eliminating GCC warning message.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@226 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-11 09:38:49 +00:00
Peter Åstrand
a3004e7f30 Indent fixes.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@225 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-11 09:37:48 +00:00
Peter Åstrand
835a6f43b1 Case-insensitive keymap names.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@224 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-11 08:54:08 +00:00
Matt Chapman
0e88940ee5 Also look for keymaps in keymaps/%s so that rdesktop can be run "in place"
without installation... I find this useful for testing and it might avoid
some user complaints as well.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@215 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-08 02:30:20 +00:00
Matt Chapman
a3088b8a6c On Solaris Break is Shift-Pause not Alt-Pause - so when checking for
Ctrl-Alt-Break, accept both Break and Pause and check state of Ctrl
and Alt.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@211 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-06 13:25:30 +00:00
Matt Chapman
b120a50f44 Update copyright dates on all files that have changed.
Bump version to 1.2-cvs.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@206 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-26 14:26:46 +00:00
Matt Chapman
e3e20a7ad0 Convert C++ style comment.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@205 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-26 14:17:41 +00:00
Matt Chapman
f4009305c7 Suppress missing translation warnings if the keymap was "none" or doesn't
exist (in the latter case the user already receives an error).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@204 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-26 14:11:59 +00:00
Matt Chapman
b46de1c760 Optimise get_key_state by caching the modifier map and the state
(this can probably still be improved in the future).
Only call time(NULL) for the events where it's needed.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@202 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-26 14:04:30 +00:00
Peter Åstrand
77f962c2c8 Support for Break key.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@198 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-25 11:17:59 +00:00
Peter Åstrand
e98b17731d Support for Pause key.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@196 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-25 11:07:57 +00:00
Matt Chapman
837d91eefc Avoid sending release of Break in Ctrl-Alt-Break to server.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@192 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-24 11:14:46 +00:00
Matt Chapman
5514330916 foo function() -> foo function(void) to conform to ANSI C.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@191 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-24 07:59:14 +00:00
Matt Chapman
d2b051fb30 Make no translation messages DEBUG_KBD.
Clean up includes, fix a few compile warnings, avoid rdesktop.h depending
on X (at the expense of KeySym -> uint32 - maybe in the future we need a
better proto scheme).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@189 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-24 07:33:17 +00:00
Peter Åstrand
16122cf6f6 Shift optimization: Either left or right shift is fine.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@182 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-17 16:57:07 +00:00
Peter Åstrand
8c203e862f xwin_reset_keys -> reset_modifier_keys. Only when necessary
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@169 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-17 08:18:41 +00:00
Peter Åstrand
3b403f9346 Better handling of guessed key translations: Uses local shift state.
Fixes problem with LeftShift not working without keymaps.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@164 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-16 13:21:44 +00:00
Matt Chapman
4eb19aceb1 Rewrite of toggle_fullscreen so it modifies the attributes of the existing
window instead of creating a new one.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@122 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-14 13:47:24 +00:00
Matt Chapman
6d5e7121b7 Move non-window-related initialisation to ui_init.
All functions after ui_init can now assume display and other globals are valid.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@120 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-14 11:48:44 +00:00
Peter Åstrand
7e7527302c Support for Windows keys (via Ctrl-Esc)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@117 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-11 11:45:20 +00:00
Peter Åstrand
2a495de6e8 Inhibited keys are defined in keymap files; not hardcoded
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@115 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-11 11:11:27 +00:00
Peter Åstrand
9d83ff00e5 Fixes NumLock problems; using RDP_INPUT_SYNCHRONIZE
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@114 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-11 09:52:30 +00:00
Peter Åstrand
6927e1563c DEBUG_KBD changes: only printing remote_modifier_state when changed
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@112 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-11 07:39:53 +00:00
Peter Åstrand
434d9cbe94 Replaced all printf with fprintf(stderr)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@110 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-01 12:03:33 +00:00
Peter Åstrand
51558f920b Keypresses was not sent unless DEBUG_KBD was enabled
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@84 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-31 06:49:34 +00:00
Peter Åstrand
6d144afb8c Got rid of var-arg macros
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@83 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-30 07:30:12 +00:00
Peter Åstrand
4f8b0bc47a Changed max line length to 100
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@81 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-30 07:18:48 +00:00
Peter Åstrand
e18946a585 Indentation fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@76 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-29 20:17:10 +00:00
Peter Åstrand
6481d9b98c Applied patch from Bob Bell (#2)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@72 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-29 19:21:51 +00:00
Peter Åstrand
5c181a1e5f Add support for enabling/disabling local compose handling. Compose support is now disabled per default
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@69 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-27 23:09:32 +00:00
Peter Åstrand
df8c2e47ce Added "localstate" support to keymapping: Send local modifier state. This fixes problems with Shift-Home etc
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@68 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-27 22:35:38 +00:00
Jay Sorg
2c654d76dc added wheel mouse support
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@66 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-23 01:53:04 +00:00
Peter Åstrand
2dd151bd20 Merged new keysym-based keyboard handling (from alt. CVS repos)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@65 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-18 18:28:12 +00:00
Peter Åstrand
0685b1b65c Fixed indentation with indent
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@63 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-18 16:38:31 +00:00
Jay Sorg
17d9c67ce3 added wheel mouse support
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@55 423420c4-83ab-492f-b58f-81f9feb106b5
2002-07-12 22:40:32 +00:00
Matt Chapman
0f0d2643f2 There is an extended key flag that we should be setting for extended keys.
(Originally fixed by Ben McKeegan <Ben.McKeegan@fitz.cam.ac.uk>)

Ran make proto.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@49 423420c4-83ab-492f-b58f-81f9feb106b5
2002-04-20 09:41:03 +00:00
Matt Chapman
3ea5e25643 Code to save and load licence (not quite working yet - server still seems
to reissue the licence).
Small clean-up in xkeymap.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@38 423420c4-83ab-492f-b58f-81f9feb106b5
2002-04-05 07:57:43 +00:00
Matt Chapman
478c36c13b Committing my keymap work - unlike the version in the unified patches,
this one uses external keymap files (which are my preference).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@37 423420c4-83ab-492f-b58f-81f9feb106b5
2002-04-04 12:04:33 +00:00