Commit Graph

200 Commits

Author SHA1 Message Date
Michael Gernoth
7deb3bbc62 fixes for HP-UX
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@602 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-07 18:47:06 +00:00
Peter Kallden
24cce4004e tmp disable select timeout - we segfault
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@593 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-03 13:55:12 +00:00
Peter Kallden
f8b90aeb7b reworked the asyncio some and completed it. parallel and serial uses it now. disk.c is a likely candidate for the future, but there are some problems with disk.c that we will have to look into first. parallel and serial works better, they do not hang the session, but are still yerky at large chunks... possibly we could split the chunks, but the terminal server does not seem to like partial transfers, i've tried some variations.. :) fns->write() could be split in smaller pieces, but what should the thresholds be.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@591 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-30 14:10:32 +00:00
Peter Åstrand
a9a863db41 Ran indent-all.sh
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@579 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-23 08:35:52 +00:00
Michael Gernoth
628db36a74 fix g_null_pointer memleak
fixes for compiles on NetBSD & FreeBSD


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@575 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-22 20:31:59 +00:00
Michael Gernoth
899e56c108 fix g_gc memleak
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@565 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-19 23:45:26 +00:00
Michael Gernoth
0f1660ead7 Try to use a TrueColor visual, even if the default-visual is
PseudoColor. This enables high-colour modes on displays with
a PseudoColor default visual and eliminates colourmap-flashing
at 8 bpp there.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@564 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-19 21:58:58 +00:00
Jay Sorg
df4b9915d8 ui_draw_text optimize and small fix
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@563 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-16 23:15:33 +00:00
Peter Åstrand
58c2cbd12a When mixing -f and -g, the last option should take precedence.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@546 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-10 15:09:49 +00:00
Michael Gernoth
41ab669bf9 compile when not all baudrates are defined on a system
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@544 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-03 20:19:01 +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
bbd2c8f209 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@541 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-03 13:22:09 +00:00
Michael Gernoth
70fd6e6ba7 Fix crash bug when toggling fullscreen-mode with fancy cursors.
Do no longer destroy the global null_cursor, when destroying the
current window.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@540 423420c4-83ab-492f-b58f-81f9feb106b5
2003-11-02 16:43:29 +00:00
Matt Chapman
36c26ab26b Need unistd.h for select.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@536 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-31 04:51:10 +00:00
Matt Chapman
826ceb5d4a Fix compile warnings on HP-UX.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@535 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-31 04:29:57 +00:00
Michael Gernoth
20f2937ea4 translate24to{24,32} were not using make/split-colour which makes
them unuseable on BE RGB-Displays of this depth...
This should fix it.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@533 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-30 00:10:32 +00:00
Peter Åstrand
ed2d6084ed Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@531 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-29 14:14:46 +00:00
Matt Chapman
ff230a1672 Fix translate16to16 along the lines of all the other translate functions.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@527 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-29 08:37:20 +00:00
Matt Chapman
5934915c9f A more general fix for the last problem - fixes 15-bit X as well.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@526 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-29 08:15:02 +00:00
Matt Chapman
23b0faba94 Hopefully make it work with both RGB and BGR X servers.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@523 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-29 06:29:05 +00:00
Michael Gernoth
c360aa4039 endianess fixes for 8 bit
fix for crash when g_bpp==24


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@520 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-28 09:02:46 +00:00
Matt Chapman
946b9a504f Convert bpp printf into DEBUG_RDP5 (perhaps not the ideal category but
it will do for now).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@518 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-28 03:40:26 +00:00
Matt Chapman
ed5618c619 private colour map code only works for 8 bpp, disable otherwise
(from neoware)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@516 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-28 03:30:51 +00:00
Peter Åstrand
0affa3f3ff Applied null cursor patch from jeroen@oldambt7.com
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@507 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-22 10:55:11 +00:00
Michael Gernoth
62c180be72 Make sure that g_dsp_busy is initialized to False
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@503 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-19 11:59:41 +00:00
Michael Gernoth
18e4c6017b added switch (-A) to disable rdpsnd
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@500 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-17 08:23:47 +00:00
Peter Åstrand
c60d7c4f3f Support for specifying geometry in terms of percent of whole screen
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@499 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-15 14:32:43 +00:00
Peter Åstrand
3a323bbcc1 Fixed indentation
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@498 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-15 14:01:32 +00:00
Peter Åstrand
049a1eff64 xkeymap_init must be before using g_enable_compose.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@497 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-14 12:05:27 +00:00
Peter Åstrand
1aa4de5ab0 Corrected SET_FOREGROUND/SET_BACKGROUND in Hatch handling routine.
This should be done according to patch 688390, and feels right,
although I basically have no idea of what I'm doing :-)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@486 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-13 12:34:15 +00:00
Jay Sorg
0a77a467d3 big endian fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@482 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-11 19:12:10 +00:00
Matt Chapman
044cacbbf2 Make some variables static.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@480 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-09 03:28:04 +00:00
Matt Chapman
9321f0d293 Fix crash bug when dsp_fd = -1.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@477 423420c4-83ab-492f-b58f-81f9feb106b5
2003-10-05 12:07:56 +00:00
Matt Chapman
d3e6c1a157 Preliminary sound support (PCM only).
Based on code from GuoJunBo <guojunbo@ict.ac.cn>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@473 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-30 09:11:08 +00:00
Jay Sorg
593dac9caf big edian support for 32 bpp xwindows, still need 16 and 24
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@471 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-25 22:23:42 +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
e48234764a restore_remote_modifiers takes ev_time argument.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@460 423420c4-83ab-492f-b58f-81f9feb106b5
2003-09-02 09:40:07 +00:00
Peter Åstrand
eb8334ffe7 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@455 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-31 20:01:12 +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
Peter Åstrand
d8670cb4de Fixed memory leak with colormap allocation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@447 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-27 08:21:53 +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
Jay Sorg
d49e190f92 more g_ prefix for global vars
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@437 423420c4-83ab-492f-b58f-81f9feb106b5
2003-08-01 17:01:58 +00:00
Peter Åstrand
7ff54cdd90 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@434 423420c4-83ab-492f-b58f-81f9feb106b5
2003-07-09 09:18:20 +00:00
Matt Chapman
5b9286e6ea Commit of work in progress on channels (so that other people can hack on
RDPSND), in particular:
* channel layer takes care of virtual channel header
* split X dependent parts out of CLIPRDR, simplified IPC implementation
* initial RDPDR implementation


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@431 423420c4-83ab-492f-b58f-81f9feb106b5
2003-07-01 09:31:25 +00:00
Erik Forsberg
b21af4866e Listen for clipboard-related events and handle them.
Listen for IPC-related events and handle them.
Changes after running indent-all.sh


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@414 423420c4-83ab-492f-b58f-81f9feb106b5
2003-06-06 11:10:48 +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
Jay Sorg
f670735863 support for hatch patterns in patblt
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@372 423420c4-83ab-492f-b58f-81f9feb106b5
2003-05-15 14:26:15 +00:00
Matt Chapman
408935e046 Fix an endianness problem.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@367 423420c4-83ab-492f-b58f-81f9feb106b5
2003-04-16 13:48:17 +00:00
Peter Åstrand
0a56d9bfd8 Support for moving window by dragging applications title bar. To be used
in conjunction with -s, -S and -D.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@341 423420c4-83ab-492f-b58f-81f9feb106b5
2003-03-14 12:00:17 +00:00
Peter Åstrand
49e48ec58c Prevent restoring by double click in single app mode.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@331 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-18 13:51:43 +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
a1c5132f9a New option for running single applications maximized
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@327 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-18 13:03:51 +00:00
Peter Åstrand
f7bfa53327 Private funcs should be static.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@318 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-10 13:02:57 +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
Jay Sorg
cbb156faa7 15 and 24 bit server support
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@315 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-09 17:17:37 +00:00
Jay Sorg
02451862d6 support for > 16 bit clients with 16 bit server
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@310 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-05 14:16:33 +00:00
Jay Sorg
4b26f4fc6b 16bit
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@308 423420c4-83ab-492f-b58f-81f9feb106b5
2003-02-04 05:32:13 +00:00
Matt Chapman
e1dd74d872 unsigned long != uint32 on a 64-bit machine.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@300 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-30 11:28:50 +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
90a283925e Add some signed types and use them in the places we have silly casts now.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@298 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-30 11:15:00 +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
Matt Chapman
b2859a6209 Rename FILL_RECTANGLE_FAST to FILL_RECTANGLE_BACKSTORE to clarify what it
does


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@295 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-28 12:07:55 +00:00
Jay Sorg
4574f1d7bd focus fullscreen window if not focused when mouse moves, it seems some display managers don't focus new windows, this will provides a way to fucus it
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@287 423420c4-83ab-492f-b58f-81f9feb106b5
2003-01-05 20:06:32 +00:00
Jay Sorg
17e9c6b607 make ui_draw_text a bit safer when cache_get_text returns NULL
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@285 423420c4-83ab-492f-b58f-81f9feb106b5
2002-12-23 18:40:03 +00:00
Jay Sorg
e670606f4d minor draw_text optimize
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@280 423420c4-83ab-492f-b58f-81f9feb106b5
2002-12-02 22:57:47 +00:00
Peter Kallden
ba91c632d4 owncolmap reintroduced, basically the same code, but with a switch -C. didn't use the -v switch as in the patches. I believe it is confusing and should be reserved for -version information. Other than that I can say that the code does not work as it does in the patches... haven't found what's wrong with it. bit shifting?
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@278 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-26 10:09:14 +00:00
Jay Sorg
517c36f2ef ui_draw_text optimization from unified patches
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@277 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-25 18:23:44 +00:00
Peter Åstrand
aa8d6482b2 Applied WM-kill patch from Matthew Riechers (slightly modified
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@274 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-19 14:48:02 +00:00
Peter Åstrand
0990f7d367 Small indent fix.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@273 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-19 14:45:13 +00:00
Peter Åstrand
6ac3e36bc3 Made -g workarea a bit less fatal when the WM does not support _NET_WORKAREA:
defaulting to 800x600.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@272 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-19 14:22:47 +00:00
Peter Åstrand
92f855845e exit()ing after "this shouldn't be happening".
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@264 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-19 10:37:39 +00:00
Peter Åstrand
daf1ac6752 Support for extended WM hint _NET_WORKAREA, via -g workarea
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@262 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-18 18:12:49 +00:00
Peter Åstrand
1ad250fcba Support for hiding WM decorations
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@261 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-18 15:37:20 +00:00
Peter Åstrand
578665e472 Indent fixes.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@260 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-18 15:35:41 +00:00
Jay Sorg
14c59b0d93 can't grabkeyboard on focusin unless mouse is in window, can't grabkeyboard on enternotiy unless window is focused, cache them, other grabkeyboard fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@256 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-11 23:15:27 +00:00
Matt Chapman
c96a91367d Need to make absolutely sure rdesktop ungrabs the keyboard - do it on
LeaveNotify as well.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@252 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-05 11:09:26 +00:00
Matt Chapman
0b7d2ca0f1 Focus upon receiving EnterNotify in fullscreen mode (in lieu of window manager)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@249 423420c4-83ab-492f-b58f-81f9feb106b5
2002-11-03 12:33:02 +00:00
Matt Chapman
9d8379fc3c Show display name in "Failed to open display" message.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@209 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-04 14:25:37 +00:00
Matt Chapman
8b98bdc4ae Arguments to get_key_state the wrong way around.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@208 423420c4-83ab-492f-b58f-81f9feb106b5
2002-10-02 13:51:16 +00:00
Matt Chapman
061f44532b Need to wait for visibility before calling XSetInputFocus
(pointed out by Jay).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@207 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-27 01:04:34 +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
171e83a2f8 Oops typo... should have tested it first :)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@203 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-26 14:10:30 +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
Matt Chapman
9365833f59 Fix for flashing title bar problem.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@200 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-25 14:33:36 +00:00
Peter Åstrand
c381a3bb9b Indent fixes.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@195 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-25 11:07:12 +00:00
Matt Chapman
23afca950e Move keyboard grabbing to FocusIn/FocusOut to fix "rdesktop gets screensaver
password" problem.  Hopefully this won't bring back the phantom flashing
titlebar...


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@193 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-24 12:25:21 +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
Matt Chapman
f418fe1a5c Reinstate a cleaned-up version of the old xwin_toggle_fullscreen - I indeed
can't get it working reliably with all window managers without creating a
new window.
Move remaining non-window dependant code into ui_init/ui_deinit so that
xwin_toggle_fullscreen can do ui_destroy_window/ui_create_window.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@187 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-24 06:09:09 +00:00
Peter Kallden
ce93ec91a4 Owncolmap removed in favour of more intelligent color allocation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@184 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-18 12:13:08 +00:00
Peter Åstrand
b9eeaf747d Small line-break fix for DEBUG_KBD.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@181 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-17 16:55:43 +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
eaaec08277 Small indent fix.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@163 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-16 13:19:54 +00:00
Matt Chapman
9d4c3b2872 Now that we have ui_init move rounding of geometry there (it's X-specific).
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@159 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-15 12:42:26 +00:00
Matt Chapman
1bee46c41e Possible fix for "flashing title bar" problem (don't grab in response
to FocusIn/FocusOut - seems to cause an event loop).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@157 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-15 11:53:50 +00:00
Matt Chapman
c113538377 Fix rdesktop not resizing properly in xwin_toggle_fullscreen with
some window managers.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@156 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-15 11:39:16 +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
65ec7634d9 Fixes Excel scroll-of-death problem: earlier select-loop failed to call xwin_process_events
when the queue was non-zero but the X11 socket was empty.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@118 423420c4-83ab-492f-b58f-81f9feb106b5
2002-09-12 09:38:31 +00:00