Commit Graph

100 Commits

Author SHA1 Message Date
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