2
# Ubuntu: https://bugs.launchpad.net/bugs/299152
3
# Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520008
4
# Upstream: http://sourceforge.net/support/tracker.php?aid=2037563
5
# Description: Call to XInitThreads() needed; patch taken from debian version 1.3.1-6 of synergy
7
diff -u synergy-1.3.1/lib/platform/CXWindowsScreen.cpp synergy-1.3.1/lib/platform/CXWindowsScreen.cpp
8
--- synergy-1.3.1/lib/platform/CXWindowsScreen.cpp
9
+++ synergy-1.3.1/lib/platform/CXWindowsScreen.cpp
11
#include "CXWindowsUtil.h"
12
#include "CClipboard.h"
17
#include "CStopwatch.h"
22
+ if (XInitThreads() == 0)
24
+ throw XArch("XInitThreads() returned zero");
27
// set the X I/O error handler so we catch the display disconnecting
28
XSetIOErrorHandler(&CXWindowsScreen::ioErrorHandler);