Commit Graph

  • 0cbd6b07a2 fixed NULL dereference. crs 2002-05-22 16:42:48 +00:00
  • 4968a5bb7c removed setting send buffer to zero size. it just reduced performance. crs 2002-05-05 23:37:12 +00:00
  • f8f1fb4041 replaced True/False with true/false when assigning to m_repeat. also should now work if the first element of a modifier keymapping is 0. that won't normally be the case but xmodmap was doing weird things on grace. if the first element is 0 it'll try the second element. if that's also zero then that modifier will be ignored. crs 2002-05-05 19:52:03 +00:00
  • 7ebaab42e0 fixes for win32 keyboard. crs 2002-05-05 19:38:09 +00:00
  • 2d7e3e8a61 fixed caps-lock handling. crs 2002-05-04 19:43:20 +00:00
  • 2dad59a027 checkpoint. added half duplex for num lock. crs 2002-05-04 18:33:48 +00:00
  • cd3e49a9a9 checkpoint. fixing up handling of half-duplex num-lock. crs 2002-05-04 18:31:54 +00:00
  • 8de2696369 checkpoint. changed when toggle keys toggle (now always on release). must see if this works. crs 2002-05-04 18:09:02 +00:00
  • 4d11079095 Fixes for win32 key handling. crs 2002-05-04 18:08:22 +00:00
  • f3c70dc300 fixed handling of shift + caps-lock. those two modifiers should cancel out if the keysym is subject to case conversion, but not otherwise. also added logging of key lookup code. crs 2002-05-04 11:23:11 +00:00
  • b19fdd86cf fixed handling of shift+tab on a system that can map ISO_Left_Tab. now tries to map ISO_Left_Tab without shift first then falls back to Tab (note that if ISO_Left_Tab can be mapped but requires a modifier then the modifier will be added). also changed attempt to map ISO_Left_Tab as a backup to Tab to request the shift modifier whether or not the primary screen requested it. crs 2002-05-03 12:23:48 +00:00
  • afa14b67c2 fixed handling of ISO_Left_Tab when that is not mapped to a keycode by mapping it to tab with shift pressed. crs 2002-05-03 12:14:55 +00:00
  • ab62dec0f7 removed attempt to make release/press of a repeating key use the same server time. was getting what appears to be deadlock but not sure why. crs 2002-05-03 11:49:30 +00:00
  • 5641a875c1 checkpoint. made changes to support key autorepeats on X. crs 2002-05-03 11:26:44 +00:00
  • 570d85c842 Indentation change. crs 2002-05-02 11:44:21 +00:00
  • 5132161e30 Fixed bug in stream buffer that could cause data to be inserted out of order. Also removed unnecessary limit on writes to the TCP socket. crs 2002-05-02 11:43:52 +00:00
  • 76269a48c1 checkpoint debugging of stream buffer. crs 2002-05-02 11:33:34 +00:00
  • eb2a202834 Was trying to avoid sending clipboard if timestamp wasn't changed but clipboard owners may not update that timestamp when the selection is changed. Disabled the timestamp check. crs 2002-05-01 16:30:20 +00:00
  • f052d126c0 Added more checks to avoid sending unchanged clipboard data. Still takes too long to query the clipboard owner for info (maybe 1/10th second) but not sure why or if that can be improved. crs 2002-05-01 16:17:57 +00:00
  • f2e83e607d checkpoint. turned off nagle and send buffering. also added test to skip clipboard conversion if a previous conversion from that owner failed. crs 2002-05-01 15:31:47 +00:00
  • 59c5e4bf13 Fixed uninitialized variable when computing toggle mask. Also reduced priority of some mouse motion log messages. crs 2002-05-01 14:36:52 +00:00
  • c8737de4ad removed obsolete files. crs 2002-05-01 14:35:55 +00:00
  • f536e1cece added fallback for missing numpad movement keys (if there's no mapping for those keys then the non-keypad versions are tried). crs 2002-04-30 18:30:05 +00:00
  • b279c80608 checkpoint. now sending toggle modifier state when entering a screen. this allows the secondary screen to set it's modifier state to match the primary screen's state. this is not strictly necessary since each keystroke should adjust the modifier state as needed to get the right result. crs 2002-04-30 17:48:11 +00:00
  • 56877bcc7d Added logging and handling of "half-duplex" caps-lock key. crs 2002-04-30 16:25:29 +00:00
  • c2a69d6c64 Changed name for auto-generated dependency files from Makedepend to .depend. crs 2002-04-30 16:23:30 +00:00
  • dc19570621 Fixes to get win32 client and server up to date. crs 2002-04-30 16:23:03 +00:00
  • ea6b347b18 Indentation changes. crs 2002-04-29 14:40:01 +00:00
  • 3ca72b35f3 Added some validation of protocol message parameters. crs 2002-04-29 14:25:24 +00:00
  • 32b085e42e Shortened timeout on waiting for clipboard response. crs 2002-04-29 14:12:48 +00:00
  • 6a9a180688 Made event selection a little more robust. Also fixed failure to marshall clipboard data when updating primary clipboards. crs 2002-04-29 14:08:48 +00:00
  • 6299eea7b6 Added missing event mask. crs 2002-04-29 13:49:56 +00:00
  • c5f6b34d85 checkpoint. changed protocol to better handle clipboards. now sending a sequence number with enter messages. screens use that sequence number in clipboard grab and data messages. the server uses the sequence number to order messages across clients. also changed secondary screens to send clipboard updates on leaving (or when grab occurs when not active) instead of on a query from the server. primary effectively does the same. the query message has been removed. crs 2002-04-29 13:31:44 +00:00
  • 3be014f8f5 Clipboard improvements. Still not working right. Nedit doesn't work at all but at least now there's a timeout to prevent synergy from hanging waiting on a reply. crs 2002-04-28 00:46:15 +00:00
  • d1ca5295d1 Added more debug levels and moved some annoying debug messages to those levels. Default log level is now DEBUG for debug builds and INFO for release builds. crs 2002-04-27 18:49:03 +00:00
  • 9ac0473d5a checkpoint. changed CProtocolUtil::readf() to store 1 and 2 byte integers into pointers to 1 and 2 byte integers. was always assuming pointers to 4 byte integers. crs 2002-04-27 18:06:40 +00:00
  • f9170eb139 Added support for multiple clipboards. This is mainly to support both PRIMARY and CLIPBOARD selections on X windows. crs 2002-04-27 14:19:53 +00:00
  • 428166fe85 set TARGETS macro to BIN and LIB targets. crs 2002-04-27 14:19:19 +00:00
  • 80cdde6a3d updated crs 2002-04-26 20:15:59 +00:00
  • 79b4d333fa Fixed caps-lock and num-lock behavior. It seems to work okay now but did notice one problem: when powerbook is primary and num-lock is on the keypad works fine until shift is pressed (and released); after that the keypad only works while the shift key is down. crs 2002-04-26 20:14:46 +00:00
  • 242109d430 Added hack to handle "half-duplex" caps-lock key on powerbook. That key only reports press when pressed and released when caps-lock is activated and only reports release when pressed and released when caps-lock is deactivated. I don't know of a way to detect this behavior so it may have to be configured by the user. The code assumes normal behavior; will have to add code to set the flag (perhaps from a user configuration). crs 2002-04-26 20:12:55 +00:00
  • 419eadfaf9 changed processing of key events in X. secondary screen now activates/deactivates modifiers as necessary to get a keycode interpreted as the expected keysym. still some work and testing to do on this. crs 2002-04-26 17:38:01 +00:00
  • b01fc4bd35 Added notes on keyboard handling. crs 2002-04-25 10:44:01 +00:00
  • 7d9fa41514 added handling for DestroyNotify of clipboard requestors. crs 2002-04-25 10:43:53 +00:00
  • f63d0e4ada checkpoint. improvements to clipboard transfer on X windows. not detecting a change to clipboard when synergy window isn't the owner (since there's no event for this; we'll have to check when we leave the screen i guess). large transfers don't seem to work. crs 2001-11-26 22:36:51 +00:00
  • 9d83cfdbe2 checkpoint. testing clipboard transfer on X windows. crs 2001-11-26 22:09:53 +00:00
  • ff9c3ba7af checkpoint. implementing clipboard owner in x windows. crs 2001-11-25 22:20:41 +00:00
  • c19022e965 fixed function signature. crs 2001-11-25 18:44:13 +00:00
  • f395bc6e12 executables are now built into a common area on unix (and they already were on win32). crs 2001-11-25 18:42:13 +00:00
  • f15c9df85b added platform independent clipboard transfer stuff clipboard owner support (MS windows done, X windows partial) added key transfer on ms windows mutex fixes in CClient (had race conditions) faster debug output in ms windows changed temporary screen name to "secondary" network fixes on ms windows (poll returned wrong result) fixed transparent cursor on ms windows crs 2001-11-25 18:32:41 +00:00
  • 3f6146b15f checkpoint. merging win32 code. server on X is currently broken and client probably is. crs 2001-11-19 00:33:36 +00:00
  • 51505783aa moved client and server files into their own respective directories. crs 2001-11-18 23:14:28 +00:00
  • 6a223b7da5 added preliminary support for getting the X selection. crs 2001-11-13 23:34:12 +00:00
  • 303734a438 fixed clamping when mapping to a different screen when beyond bottom or right of source screen. crs 2001-11-11 21:27:36 +00:00
  • cf4e1fd9ca factored common X windows screen stuff into a common base class. crs 2001-11-11 21:15:30 +00:00
  • 05928f28f8 updated notes. crs 2001-11-10 22:28:37 +00:00
  • 836d9d2d33 added main app directory to build. crs 2001-11-10 22:28:30 +00:00
  • ef3149cead removed unnecessary global scoping operators. crs 2001-10-25 22:17:17 +00:00
  • dbdf20e804 changed hider window to move underneath mouse when leaving the screen. this makes it so if the mouse is moved locally, it'll reappear where it was last seen. crs 2001-10-25 22:09:27 +00:00
  • c5df2edd14 changed some method names and removed warpCursor() from secondary screen interface. crs 2001-10-25 21:40:29 +00:00
  • 5b1826a638 now handling disconnect of secondary screen that has the cursor by jumping back to the primary screen (without trying to notify the now disconnected secondary screen). also fixed blown assert in mapPosition(). crs 2001-10-24 23:29:29 +00:00
  • 066910fab8 made calls to X thread safe. crs 2001-10-24 22:33:24 +00:00
  • fdb888102b more notes. crs 2001-10-23 22:45:59 +00:00
  • 20c7aca1db added cursor hiding. crs 2001-10-23 22:41:46 +00:00
  • c9f0b694de can now filter logging by level. crs 2001-10-23 21:23:29 +00:00
  • b7533aea2a fixed blown assert trying to find neighbor when there was none. crs 2001-10-23 21:13:08 +00:00
  • cfdf6bd73a fixed handling of stream ownership. crs 2001-10-21 00:21:21 +00:00
  • 8d1cf844c7 fixed bugs in handling streams. crs 2001-10-21 00:21:02 +00:00
  • 3cfbc0f68c threading fixes. had sigmask set in wrong place. was setting m_exit flag potentially after the object had been destroyed. most importantly, RTTI must be enabled on PPC to avoid SIGILL. crs 2001-10-20 20:43:31 +00:00
  • 9435639545 some debugging code. crs 2001-10-14 19:16:54 +00:00
  • b3291bc2b5 fixed timeout bug in CThreadRep::wait() (negative timeout wouldn't wait forever). also fixed early return from sleep due to signal. now forcing client to initialize CThread to ensure global mutex gets initialized before threads are used. crs 2001-10-14 18:29:43 +00:00
  • 6aba3a6f57 removed exception specifications. thread exceptions weren't being listed and they'd have to be added to every one. just doesn't seem worth the trouble. crs 2001-10-14 16:58:01 +00:00
  • c6ed114410 stupid bug fixes. writef() used the wrong variable as the number of bytes to write. readf() forgot to prepare the va_list. crs 2001-10-14 14:56:06 +00:00
  • 22b99b6ca4 forgot to add the logger files. crs 2001-10-14 14:38:45 +00:00
  • 1ed2b43e13 added logging facility and added a bunch of log messages. crs 2001-10-14 14:37:41 +00:00
  • 23f948d55a checkpoint. first cut of client and server apps. not tested yet but they compile and *should* work as is. crs 2001-10-08 19:24:46 +00:00
  • 23f1b1aba1 updated old files to new implementation crs 2001-10-06 14:18:01 +00:00
  • ff81f708e2 Started over. crs 2001-10-06 14:13:28 +00:00
  • 27ead1f713 flipped order of buttons to match default X setup. crs 2001-05-14 21:14:49 +00:00
  • 8beea84a8d added other mouse and key event handling to CXScreen. key repeat isn't implemented and modifier masks are ignored. modifier masks are new; they indicate the modifier key (shift, ctrl, etc) state at the time of the key event. crs 2001-05-14 21:14:25 +00:00
  • fe79ac593c more fixes to reduce latency. nagle agorithm doesn't seem to stay off on a socket on linux because a connection clearly doesn't send data as often as possible. will have to implement a UDP socket to reduce overhead and avoid these delays. wanted to do that anyway. crs 2001-05-13 12:43:16 +00:00
  • d0594ea9f3 fixes to avoid update delays. crs 2001-05-13 12:21:11 +00:00
  • 2155c00c44 fixed bug in read() that miscalculated the message length. crs 2001-05-13 12:07:32 +00:00
  • 900b075e3a initial revision of synergy. currently semi-supports X windows on unix, but client screens don't simulate events other than mouse move. also not supporting clipboard at all yet and the main app is just a temporary framework to test with. must clean up protocol and communication. crs 2001-05-13 11:40:29 +00:00