Enable Sync only on explicit presence of sync.h, not just Xext.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@39198 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2015-11-24 23:47:25 +00:00
parent 8d7e165b47
commit cc7fa76c5e
6 changed files with 27 additions and 12 deletions

View file

@ -1,7 +1,7 @@
/* -*- mode:ObjC -*-
XGServer - X11 Server Class
Copyright (C) 1998,2002 Free Software Foundation, Inc.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@gnu.org>
Date: Mar 2002
@ -447,7 +447,7 @@ _parse_display_name(NSString *name, int *dn, int *sn)
XSetErrorHandler(XGErrorHandler);
#ifdef HAVE_LIBXEXT
#ifdef HAVE_X11_EXTENSIONS_SYNC_H
{
int xsync_evbase, xsync_errbase;
int major, minor;

View file

@ -1,7 +1,7 @@
/*
XGServerEvent - Window/Event code for X11 backends.
Copyright (C) 1998,1999 Free Software Foundation, Inc.
Copyright (C) 1998-2015 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@boulder.colorado.edu>
Date: Nov 1998
@ -634,7 +634,7 @@ posixFileDescriptor: (NSPosixFileDescriptor*)fileDescriptor
(SubstructureRedirectMask | SubstructureNotifyMask),
&xEvent);
}
#ifdef HAVE_LIBXEXT
#ifdef HAVE_X11_EXTENSIONS_SYNC_H
else if ((Atom)xEvent.xclient.data.l[0]
== generic.net_wm_sync_request_atom)
{

View file

@ -1,6 +1,6 @@
/* XGServerWindows - methods for window/screen handling
Copyright (C) 1999 Free Software Foundation, Inc.
Copyright (C) 1999-2015 Free Software Foundation, Inc.
Written by: Adam Fedor <fedor@gnu.org>
Date: Nov 1999
@ -1507,7 +1507,7 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
if ((generic.wm & XGWM_EWMH) != 0)
{
window->protocols[window->numProtocols++] = generic.net_wm_ping_atom;
#ifdef HAVE_LIBXEXT
#ifdef HAVE_X11_EXTENSIONS_SYNC_H
window->protocols[window->numProtocols++] = generic.net_wm_sync_request_atom;
#endif
}
@ -2155,7 +2155,7 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
window->gen_hints.flags |= WindowGroupHint;
window->gen_hints.window_group = ROOT;
#ifdef HAVE_LIBXEXT
#ifdef HAVE_X11_EXTENSIONS_SYNC_H
/**
* Setup net_wm_sync_request_counter
*/
@ -3774,7 +3774,7 @@ static BOOL didCreatePixmaps;
}
}
#ifdef HAVE_LIBXEXT
#ifdef HAVE_X11_EXTENSIONS_SYNC_H
if (window->net_wm_sync_request_counter_value_low != 0
|| window->net_wm_sync_request_counter_value_high != 0)
{