Commit Graph

3913 Commits

Author SHA1 Message Date
crs 67051556bb fixed type of TARGETS target. 2002-07-24 17:30:32 +00:00
crs 5fe7763d37 made handling of nul terminators in CUnicode more sane. 2002-07-24 17:22:01 +00:00
crs 6fc6805a06 some fixes for motif clipboard. still not handling incremental
transfer through root window property because not sure of the
protocol.
2002-07-24 17:07:52 +00:00
crs c6ecc79c0d removed restart function from platform. no longer trying to
restart if the X server connection was lost;  since synergy
is likely to be started by xdm or the user's xsession, it's
better for synergy to simply terminate when the connection
is lost.  synergy will still restart due to other errors.
also fixed numerous other minor bugs and cleaned some stuff
up (like app error codes are now consistent and enumerated
in Version.h, for lack of a better place).  and boosted
version and protocol numbers.
2002-07-24 13:01:18 +00:00
crs d9ec880291 checkpoint. 2002-07-23 19:00:01 +00:00
crs 7d7b7f85ca fixed a bug in clipboard conversion (was using wrong converter or
no converter when one was available).
2002-07-23 18:59:44 +00:00
crs 7129efc9ab converted win32 to use unicode based KeyID. 2002-07-23 18:59:15 +00:00
crs 8271c8accc checkpoint. converting KeyID to use UTF-32 encoding instead of
X11 keysyms.
2002-07-23 17:04:41 +00:00
crs 57b64f1fe7 no longer attempting to unmarshall clipboard formats that aren't
known to the caller.  if the client supports more formats than
the server then the server could get a clipboard format greater
than kNumFormats.  with this change the server discards the
extra formats instead of crashing.
2002-07-23 15:34:05 +00:00
crs 8ada1e8a72 unicode clipboard changes for win32 plus some bug fixes. 2002-07-23 15:26:40 +00:00
crs b1163aa593 removed unnecessary atoms from X clipboard object. 2002-07-23 12:35:36 +00:00
crs 1fd07567cc checkpoint. more CUnicode fixes. 2002-07-23 12:08:30 +00:00
crs 2fa9b263f9 checkpoint. fixed the other cases in the same function as the
previous checkin.  also prevented the errors flag from getting
reset after the multibyte to wide character conversion.
2002-07-23 11:51:13 +00:00
crs e93a12868d checkpoint. fixed cases for mbrtowc (was using 1 and 2 instead
of -1 and -2).
2002-07-23 11:42:54 +00:00
crs 1f5cb6a96f checkpoint. more UTF8 clipboard stuff. 2002-07-23 11:36:18 +00:00
crs 16cc05d56b checkpoint. more UTF8 clipboard testing. 2002-07-23 09:33:50 +00:00
crs fcd99c9510 checkpoint. more UTF8 clipboard stuff. 2002-07-22 18:46:57 +00:00
crs c4f21ce29b checkpoint. more UTF8 clipboard stuff. 2002-07-22 18:17:21 +00:00
crs bb966cdd65 checkpoint. working on UTF8 clipboard transfer. 2002-07-22 18:03:44 +00:00
crs 643d0f1089 checkpoint. adding support for unicode in clipboard. 2002-07-22 17:32:51 +00:00
crs 4c2cbb9f03 changed notes about how to startup configure synergy. it now
discourages using boot scripts, which can't handle X servers
requiring authorization, and suggests modifying xdm's Xsetup.
2002-07-19 21:27:59 +00:00
crs 587f5247d8 updated init.d scripts to work with SuSE. however, it looks as
if they cannot be used on an X server using authentication
because the daemons they start are not authorized to connect to
the X server.  X users should modify Xsetup or Xsession.
2002-07-19 20:44:57 +00:00
crs 47f7e3c4d5 formatting. 2002-07-19 18:12:41 +00:00
crs 5f865a9b07 removed <CR> from previous change. 2002-07-19 17:39:45 +00:00
crs 89ab1caa11 reordered operations to reduce cursor flashing when entering
primary screen.
2002-07-19 17:38:34 +00:00
crs cf71aec730 fixed handling of calling init() when a previous process did not
call cleanup().  if that process still appears to exist then the
init() fails.  otherwise some cleanup is performed and the init()
proceeds.  a synergy server started while another is running will
now exit immediately without interfering the original server.
2002-07-18 17:03:10 +00:00
crs 635c3d1c62 now cancelling and waiting for the accept client thread before
cancelling any other threads.  this prevents a race condition
where we disconnect a client but it reconnects before we
manage to shutdown.  that might leave a thread running and
the connection won't be closed down properly.
2002-07-18 17:00:48 +00:00
crs 0759cbc104 changed waitForEvent() to handle a peculiar feature of
MsgWaitForMultipleObjects():  it will not return immediately
if an event already in the queue when it's called was already
in the queue during the last call to GetMessage()/PeekMessage().
also now discarding screen saver events if there are any other
screen saver events in the queue already.  this prevents these
events from piling up in the queue, which they'd do because we
sleep for 250ms when handling each one.
2002-07-18 16:58:08 +00:00
crs e94f308e21 fixed incorrect paths to makehook and synrgyhk project files. 2002-07-18 08:54:17 +00:00
crs 76cc62d133 attempt to fix stuttering when leaving win32 screen. seems to
work but will let testers make the final call.  also fixed
desktop synchronization by setting a variable that was
mistakenly left unset.  and tried to work around an apparent
bug in MsgWaitForMultipleObjects() that prevented the service
from closing down properly.  start/pause/continue/stop
sequence still doesn't shut down correctly.  start/pause/stop
and start/stop work fine.
2002-07-17 17:27:41 +00:00
crs 82cdfb478a removed unnecessary local variable. 2002-07-17 17:24:44 +00:00
crs 22ba640940 fixes to get it compiling on .NET. 2002-07-16 19:07:15 +00:00
crs 7c391a0f35 moved onError() method to IScreenReceiver from IPrimaryScreenReceiver.
also implemented onError in CClient which previously did not have
any way to handle display disconnection.
2002-07-16 16:52:26 +00:00
crs 0bfe12d6ab completing previous checkin. 2002-07-15 15:03:04 +00:00
crs 4b46862026 checkpoint. refactored win32 code. had to edit and rename some
files so this is only a checkpoint.
2002-07-15 15:01:36 +00:00
crs f48a5fe387 checkpoint. still refactoring. merged common code from primary
screens into CPrimaryScreen and merged common code from secondary
screens into CSecondaryScreen.  changed is-a relationship to a
has-a between the primary and secondary screen classes and the
generic platform dependent screen class to avoid multiple
inheritance of implementation.  also standardized the interface
for those generic screen classes.  adding a platform now involves
implementing simpler interfaces:  IScreen for the generic screen,
IScreenEventHandler and some methods of CPrimaryScreen for the
primary screen, and IScreenEventHandler and some methods of
CSecondaryScreen for the secondary screen.  did X11 platform
but not win32 platform.
2002-07-13 22:00:38 +00:00
crs 52b60d5175 refactoring. refactored stuff in client (with changes to server
as necessary).
2002-07-12 20:41:23 +00:00
crs ef7fe1f283 checkpoint. making win32 and X primary screen code more similar
in order to share code later.
2002-07-11 18:58:49 +00:00
crs feeb15a08d applied refactoring to win32 code. 2002-07-11 13:13:37 +00:00
crs 3468f3d503 more refactoring. 2002-07-10 21:22:28 +00:00
crs 710e1bdd47 refactored client code. it now uses IClient and IServer and
has a CServerProxy, making it's design similar to the server
code.
2002-07-10 20:18:32 +00:00
crs df6748f669 removed some obsolete comments. 2002-07-10 14:29:50 +00:00
crs f90076938b removed IPrimaryReceiver in favor of IServer, which required a few
minor changes to support IPrimaryReciever's functionality.  this
does mean that the IPrimaryScreen class will be calling some
methods with dummy arguments.  those are documented in
CPrimaryClient.
2002-07-10 14:15:17 +00:00
crs 64232c7854 updated to new automake and refactored server stuff. the server
now speaks to the primary screen and secondary screens almost
everywhere the same way through an IClient interface;  only
special primary screen calls are accessed through a different
interface, the CPrimaryClient interface.  this simplifies the
server since it no longer needs to test whether the active screen
is the primary or a secondary in most cases.

the server no longer speaks directly to the primary screen;  all
that goes through the CPrimaryClient, which often just forwards
the call.  the primary screen no longer speaks directly to the
server either, again going through the CPrimaryClient via a
IPrimaryReceiver interface.

CServerProtocol classes have been replaced by CClientProxy
classes which are very similar.  the name makes more sense
though.
2002-07-09 21:22:31 +00:00
crs bdfdc8e816 checkpoint. moved IPrimaryScreen.h. 2002-07-09 17:31:45 +00:00
crs 3138ba373d moved IServerProtocol to server from synergy directory. 2002-07-07 15:15:34 +00:00
crs 217313e013 fixed spurious mouse motions when entering/leaving primary
screen on X11.
2002-07-03 16:25:36 +00:00
crs d813329c0c mistakenly removed mouse button checks when on secondary screens
from isLockedToScreen() in earlier checkin.
2002-07-01 15:05:49 +00:00
crs 350cd7e2ca checkpoint. 2002-07-01 14:01:23 +00:00
crs e267d1dc1c now synthesizing key release events for each pressed key when
the client screen is closed.  this fixes the bug where the
client's keyboard was left with some keys logically pressed
when the client died (e.g. using ctrl+c on the client program
from the server's keyboard would leave the ctrl key logically
pressed).
2002-07-01 13:03:16 +00:00