back/ericwa-experimental: remove gdriverProtocol

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34149 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-11-09 22:03:03 +00:00
parent 661d409586
commit cd92e78ff5
3 changed files with 12 additions and 34 deletions

View file

@ -110,7 +110,6 @@ typedef struct _gswindow_device_t {
int numProtocols;
XIC ic;
void *gdriver; /* gdriver ident. Managed by gdriver */
int gdriverProtocol; /* Managed by gdriver */
BOOL ignore_take_focus;
#ifdef HAVE_LIBXEXT
uint32_t net_wm_sync_request_counter_value_low;

View file

@ -73,9 +73,6 @@
// Do double-buffer:
// Create a similar surface to the window which supports alpha
// Ask XGServerWindow to call +[CairoContext handleExposeRect:forDriver:]
// to let us handle the back buffer -> front buffer copy using cairo.
GSWINDEVICE->gdriverProtocol |= GDriverHandlesExpose | GDriverHandlesBacking;
GSWINDEVICE->gdriver = self;
_windowSurface = windowsurface;

View file

@ -1643,12 +1643,6 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
NSDebugLLog(@"XGTrace", @"DPSwindowbacking: %@ : %d", type, win);
if ((window->gdriverProtocol & GDriverHandlesBacking))
{
window->type = type;
return;
}
window->type = type;
}
@ -2577,18 +2571,12 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
[isa waitAllContexts];
if ((window->gdriverProtocol & GDriverHandlesExpose))
{
/* Temporary protocol until we standardize the backing buffer */
NSRect rect = NSMakeRect(rectangle.x, rectangle.y,
rectangle.width, rectangle.height);
[[GSCurrentContext() class] handleExposeRect: rect
forDriver: window->gdriver];
}
else
{
assert(0);
}
/* Temporary protocol until we standardize the backing buffer */
NSRect rect = NSMakeRect(rectangle.x, rectangle.y,
rectangle.width, rectangle.height);
[[GSCurrentContext() class] handleExposeRect: rect
forDriver: window->gdriver];
}
else
{
@ -2641,18 +2629,12 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
if (width > 0 || height > 0)
{
[isa waitAllContexts];
if ((window->gdriverProtocol & GDriverHandlesBacking))
{
NSDebugLLog (@"XGFlush",
@"expose X rect ((%d, %d), (%d, %d))", xi, yi, width, height);
/* Temporary protocol until we standardize the backing buffer */
[[GSCurrentContext() class] handleExposeRect: rect
forDriver: window->gdriver];
}
else
{
assert(0);
}
NSDebugLLog (@"XGFlush",
@"expose X rect ((%d, %d), (%d, %d))", xi, yi, width, height);
/* Temporary protocol until we standardize the backing buffer */
[[GSCurrentContext() class] handleExposeRect: rect
forDriver: window->gdriver];
}
#ifdef HAVE_LIBXEXT