Commit Graph

  • 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. crs 2002-07-23 11:51:13 +0000
  • e93a12868d checkpoint. fixed cases for mbrtowc (was using 1 and 2 instead of -1 and -2). crs 2002-07-23 11:42:54 +0000
  • 1f5cb6a96f checkpoint. more UTF8 clipboard stuff. crs 2002-07-23 11:36:18 +0000
  • 16cc05d56b checkpoint. more UTF8 clipboard testing. crs 2002-07-23 09:33:50 +0000
  • fcd99c9510 checkpoint. more UTF8 clipboard stuff. crs 2002-07-22 18:46:57 +0000
  • c4f21ce29b checkpoint. more UTF8 clipboard stuff. crs 2002-07-22 18:17:21 +0000
  • bb966cdd65 checkpoint. working on UTF8 clipboard transfer. crs 2002-07-22 18:03:44 +0000
  • 643d0f1089 checkpoint. adding support for unicode in clipboard. crs 2002-07-22 17:32:51 +0000
  • 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. crs 2002-07-19 21:27:59 +0000
  • 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. crs 2002-07-19 20:44:57 +0000
  • 47f7e3c4d5 formatting. crs 2002-07-19 18:12:41 +0000
  • 5f865a9b07 removed <CR> from previous change. crs 2002-07-19 17:39:45 +0000
  • 89ab1caa11 reordered operations to reduce cursor flashing when entering primary screen. crs 2002-07-19 17:38:34 +0000
  • 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. crs 2002-07-18 17:03:10 +0000
  • 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. crs 2002-07-18 17:00:48 +0000
  • 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. crs 2002-07-18 16:58:08 +0000
  • e94f308e21 fixed incorrect paths to makehook and synrgyhk project files. crs 2002-07-18 08:54:17 +0000
  • 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. crs 2002-07-17 17:27:41 +0000
  • 82cdfb478a removed unnecessary local variable. crs 2002-07-17 17:24:44 +0000
  • 22ba640940 fixes to get it compiling on .NET. crs 2002-07-16 19:07:15 +0000
  • 7c391a0f35 moved onError() method to IScreenReceiver from IPrimaryScreenReceiver. also implemented onError in CClient which previously did not have any way to handle display disconnection. crs 2002-07-16 16:52:26 +0000
  • 0bfe12d6ab completing previous checkin. crs 2002-07-15 15:03:04 +0000
  • 4b46862026 checkpoint. refactored win32 code. had to edit and rename some files so this is only a checkpoint. crs 2002-07-15 15:01:36 +0000
  • 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. crs 2002-07-13 22:00:38 +0000
  • 52b60d5175 refactoring. refactored stuff in client (with changes to server as necessary). crs 2002-07-12 20:41:23 +0000
  • ef7fe1f283 checkpoint. making win32 and X primary screen code more similar in order to share code later. crs 2002-07-11 18:58:49 +0000
  • feeb15a08d applied refactoring to win32 code. crs 2002-07-11 13:13:37 +0000
  • 3468f3d503 more refactoring. crs 2002-07-10 21:22:28 +0000
  • 710e1bdd47 refactored client code. it now uses IClient and IServer and has a CServerProxy, making it's design similar to the server code. crs 2002-07-10 20:18:32 +0000
  • df6748f669 removed some obsolete comments. crs 2002-07-10 14:29:50 +0000
  • 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. crs 2002-07-10 14:15:17 +0000
  • 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. crs 2002-07-09 21:22:31 +0000
  • bdfdc8e816 checkpoint. moved IPrimaryScreen.h. crs 2002-07-09 17:31:45 +0000
  • 3138ba373d moved IServerProtocol to server from synergy directory. crs 2002-07-07 15:15:34 +0000
  • 217313e013 fixed spurious mouse motions when entering/leaving primary screen on X11. crs 2002-07-03 16:25:36 +0000
  • d813329c0c mistakenly removed mouse button checks when on secondary screens from isLockedToScreen() in earlier checkin. crs 2002-07-01 15:05:49 +0000
  • 350cd7e2ca checkpoint. crs 2002-07-01 14:01:23 +0000
  • 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). crs 2002-07-01 13:03:16 +0000
  • a0eba4c337 disabled removing client if no heartbeat is received. we don't want that while testing because it might hide bugs. crs 2002-07-01 13:01:16 +0000
  • 684ac64742 fixed locking to screen on win32. was using GetKeyboardState() to query keys but that doesn't give us up-to-date information. now using GetAsyncKeyState() if on primary and m_keys if on secondary. crs 2002-07-01 13:00:12 +0000
  • f4a73c28a2 added win32 screen saver class forgotten in previous checkins. crs 2002-07-01 12:58:52 +0000
  • ed8ed72f26 synergy hook DLL will now restart itself if a client tries to init() it while it's already running. fixed an uninitialized pointer bug in CServer and some cleanup-on-error code in CMSWindowsPrimaryScreen. also added timeout to read() on IInputStream and a heartbeat sent by clients so the server can disconnect clients that are dead but never reset the TCP connection. previously the server would keep these dead clients around forever and if the user was locked on the client screen for some reason then the server would have to be rebooted (or the server would have to be killed via a remote login). crs 2002-06-26 16:31:48 +0000
  • d9b2c59d02 client now compresses mouse motion events. this fixes slow dragging on grace, possibly on win32 too. crs 2002-06-26 13:48:08 +0000
  • 78d28fd6e5 fixed getSize() to be non-blocking in CInputPacketStream. crs 2002-06-26 13:31:06 +0000
  • 6cc3b50d3b fixed re-entrant calls to X bug. crs 2002-06-26 12:44:52 +0000
  • 1377882a9f fixed handling of jumping to primary when screen saver starts and back to secondary when it stops. also now redirecting keyboard input to root window when screen saver starts; this allows the user to type in the lock dialog and also effectively discards any input used to deactivate the screen saver. crs 2002-06-23 23:24:22 +0000
  • 80d11df2f9 checkpoint. crs 2002-06-23 21:54:05 +0000
  • 76db457830 win32 screen saver now handled. crs 2002-06-23 21:53:31 +0000
  • 7100e07d2b now disabling disable job timer when forcing screen saver activation. previously the timer would deactivate the screen saver shortly after activation. job timer is restored when the screen saver is deactivated. crs 2002-06-23 21:48:33 +0000
  • a5391a0a1d checkpoint screensaver changes. now handling xscreensaver dying and restarting or starting after synergy does. also now disabling the screen saver on the client. next step: win32 support. crs 2002-06-23 15:43:40 +0000
  • 4d113aa235 fixes to get xscreensaver integration working. crs 2002-06-22 20:29:59 +0000
  • 95a1ce8798 CXWindowsUtil::CErrorLock wasn't XSync()'ing the display before installing and uninstalling the new error handler, causing errors before the lock to be caught and errors during the lock to not be caught. had to add Display* as argument to c'tor. crs 2002-06-22 19:47:27 +0000
  • 504bfa2def checkpoint. adding screen saver support. only on X so far and untested. also some known problems: not detecting an xscreensaver started after us and not detecting built-in screen saver activation (not sure if we can without using ugly extensions). crs 2002-06-22 19:20:21 +0000
  • 4e37691a9c added header files to _SOURCES. crs 2002-06-22 17:31:24 +0000
  • 6c6afcc8cb added comments. crs 2002-06-22 13:55:45 +0000
  • c961115686 cleanup. crs 2002-06-22 12:09:49 +0000
  • ede18cb7f3 cleaned up some minor bugs. crs 2002-06-21 17:55:47 +0000
  • e0f66d162f ported network changes to win32. crs 2002-06-21 17:54:22 +0000
  • a996db6600 now trying to convert hostname as a dot notation address before trying name lookup. not all platforms will do this for us in gethostbyname(). crs 2002-06-21 16:29:35 +0000
  • 327af03d3d fixed CTCPSocket::connect() to allow cancellation. crs 2002-06-21 16:19:08 +0000
  • e2ee2371e0 some cleanup. also fixed a race condition when adding threads to the thread list: the child thread would add itself to the list which means there could be a time interval in the parent where the child thread exists but isn't on the list. the parent now does the adding and removing. crs 2002-06-21 15:18:01 +0000
  • b83c0c5928 now blocking SIGINT and SIGTERM in restart function. the child should handle the signal and terminate. then the restart function will exit. crs 2002-06-21 15:15:34 +0000
  • a65bb19723 signal handler thread now dies when SIGABRT is raised. ignoring SIGABRT in sigwait() seems to be a bug in the linux pthread library. crs 2002-06-21 15:14:32 +0000
  • cec075cb60 fixed bug introduced by previous checkin. calling XCheckIfEvent() multiple times is *not* the same as calling XIfEvent() because the former will re-encounter events that it didn't process previously. to make things simple it now pulls events off the queue and saves them if not processed for selection transfer and puts them back afterwards. crs 2002-06-20 16:27:49 +0000
  • 2423dc662d speeded up clipboard transfer by avoiding a selection request when it wasn't necessary. (in particular, we were getting the clipboard update time from the owner then emptying the clipboard, so we didn't need to get the time. worse, most owners don't support getting the time and we often timed out.) crs 2002-06-20 14:01:44 +0000
  • 3d27de39bb checkpoint. trying to fix a delay when sending clipboards on X. crs 2002-06-20 13:35:28 +0000
  • c4fea1c32b added workaround for bug windows 98 (Me?) and multiple displays: absolute mouse_event() moves don't work except for primary display. crs 2002-06-20 11:13:37 +0000
  • 4f418e015e work around for bug with mouse driver on lombard powerbook. crs 2002-06-20 09:19:55 +0000
  • a16e7217ce fixed bugs in mouse motion. wasn't taking care to capture all motion events relative to the previous mouse position. for example, if two mouse events arrive, the first at x+1,y and the second at x+2,y, we used to compute deltas of 1,0 and 2,0 instead of 1,0 and 1,0. that's fixed. also worked around a bug (probably) in windows that caused a motion event after a SetCursorPos() to be lost or reported one pixel off from the correct position. now using mouse_event() which doesn't have that problem. also fixed calculation of normalized coordinates for mouse_event() when there are multiple displays. crs 2002-06-19 20:24:35 +0000
  • bebb63ac53 checkpoint. initial support for multiple displays on win32. crs 2002-06-19 17:03:29 +0000
  • 29c90a3b6c fixed addition of X11 -L and -l options on link lines. crs 2002-06-19 14:45:22 +0000
  • c4f1dbdae4 checkpoint. automake changes for wait(). crs 2002-06-19 12:21:26 +0000
  • 8a103ce63c checkpoint. automake changes for reentrant functions. crs 2002-06-19 11:58:48 +0000
  • 9c7e863d77 checkpoint. more conversion to automake. crs 2002-06-19 11:23:49 +0000
  • f85457c49f moved auxillary automake files into config directory. crs 2002-06-19 08:23:08 +0000
  • eabfcb9e16 added automake required tools. crs 2002-06-18 19:47:52 +0000
  • 1c604ecc3d started to convert to autoconf/automake. crs 2002-06-18 19:44:34 +0000
  • fadc73d348 now checking vsnprintf result against < 0 instead of == -1 for portability. crs 2002-06-18 18:34:55 +0000
  • 32713d0cfb added FIXME to commented out code. crs 2002-06-18 18:33:59 +0000
  • 68740da942 made command line parsing a little more sane with respect to windows NT services. crs 2002-06-17 15:44:45 +0000
  • a81f573666 updates crs 2002-06-17 14:10:25 +0000
  • fe16546a1d formatting changes. crs 2002-06-17 13:31:21 +0000
  • 57fb87ad10 refactored ISocket into IDataSocket. the latter and IListenSocket now derive from ISocket. crs 2002-06-17 12:02:26 +0000
  • e3dcf7febf performance fixes on win32 plus clean up of some warnings. also improved error messages when uninstalling service. crs 2002-06-14 18:08:20 +0000
  • 21af7b2f17 added a blurb about synrgyhk.dll and that the service manager will look for the binary wherever it was when --install was used. crs 2002-06-11 20:10:49 +0000
  • 2b07c8091c windows fixes needed for formatting changes. crs 2002-06-11 20:09:59 +0000
  • c54d92b78f commented out half-duplex flags that should never have been uncommented. crs 2002-06-11 18:33:03 +0000
  • 88490de5a2 fixed bug with switching screens on primary when there's no link in that direction (it would assert). introduced bug when adding support for wrapping. now ignores attempts to move in a direction with no link. crs 2002-06-11 18:31:06 +0000
  • fba8063c17 added missing #include <signal.h>. crs 2002-06-11 18:30:08 +0000
  • 62519b19fe indentation and other formatting changes. also cleaned up #includes. crs 2002-06-10 22:06:45 +0000
  • 68940e58f3 win32 changes. now including windows.h with WIN32_LEAN_AND_MEAN to avoid including some stuff we don't want (like winsock). crs 2002-06-10 16:49:46 +0000
  • 500990b153 fixes. crs 2002-06-10 11:09:02 +0000
  • cf0805c93a updates. crs 2002-06-10 11:08:02 +0000
  • afc8d6a9e7 added example files and a README. crs 2002-06-10 11:00:55 +0000
  • 172fc7e5b3 now allowing a screen to be its own neighbor to allow wrapping. also no longer warping mouse to 0,0 when setting server screen info. that was causing the mouse to jump if the server screen had itself as its left or top neighbor (directly or indirectly) once a screen could be its own neighbor. crs 2002-06-10 10:08:36 +0000
  • 2ea3d66112 fixed stripping of comments from configuration streams. crs 2002-06-10 09:49:21 +0000
  • 2e931a4fd9 changed "permitted" to "supported" in error messages. crs 2002-06-10 09:49:03 +0000
  • 0a2f8547fc no longer camps if the server sends an error message. crs 2002-06-09 23:08:18 +0000
  • 28afcddf62 added support for camping, i.e. repeatly trying to connect to the server until we succeed. crs 2002-06-09 22:20:28 +0000
  • 30a6a8b837 CTimerThread now allows zero and negative timeouts. a negative timeout never times out and CTimerThread is a no-op. crs 2002-06-09 22:20:01 +0000