-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux client fails to start due to invalid cursor size #5087
Comments
xhou-wavefin
changed the title
Synergyc fails to start - Fedora 22
Client fails to start due to invalid cursor size
Nov 9, 2015
xhou-wavefin
changed the title
Client fails to start due to invalid cursor size
Linux client fails to start due to invalid cursor size
Nov 9, 2015
nlyan
pushed a commit
that referenced
this issue
Jun 17, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported by Chris S.
Expected: Synergy client starts
Actual: Doesn't start.
Solution:
I've tracked the problem back to the libX11 function XQueryBestCursor which
seems to be returning a successful status (True) but also returning values of 0 for 'h' and 'w'.
The call is in your source code
synergy/src/lib/platform/XWindowsScreen.cpp
inside ( method createBlankCursor ).
If the returned valud for h or w is equal to 0, then the subsequent call to XCreatePixmapCursor fails.
The fix I implemented, which seemed to work, was just to add the following lines after the XQueryBestCursor call:
if(w <= 0)
{
w=1;
}
if(h <= 0)
{
h=1;
}
The text was updated successfully, but these errors were encountered: