mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
back/ericwa-experimental: remove a styleoffsets call, waitAllContexts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/ericwa-experimental@34151 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6cc8506bc4
commit
0aca753728
2 changed files with 2 additions and 10 deletions
|
@ -90,7 +90,6 @@ typedef struct _gswindow_device_t {
|
|||
|
||||
unsigned int buffer_width; /* Size in pixels of the current buffers. */
|
||||
unsigned int buffer_height;
|
||||
BOOL is_exposed;
|
||||
NSMutableArray *exposedRects; /* List of exposure event rects */
|
||||
XWMHints gen_hints;
|
||||
XSizeHints siz_hints;
|
||||
|
|
|
@ -2572,9 +2572,6 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
NSDebugLLog (@"NSWindow", @"copy exposed area ((%d, %d), (%d, %d))",
|
||||
rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
||||
|
||||
|
||||
[isa waitAllContexts];
|
||||
|
||||
/* Temporary protocol until we standardize the backing buffer */
|
||||
NSRect rect = NSMakeRect(rectangle.x, rectangle.y,
|
||||
rectangle.width, rectangle.height);
|
||||
|
@ -2622,17 +2619,13 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
|
|||
return;
|
||||
}
|
||||
|
||||
[self styleoffsets: &l : &r : &t : &b
|
||||
: window->win_attrs.window_style : window->ident];
|
||||
xi = rect.origin.x = NSMinX(rect) - l;
|
||||
yi = rect.origin.y = NSHeight(window->xframe) + b - NSMaxY(rect);
|
||||
xi = rect.origin.x = NSMinX(rect);
|
||||
yi = rect.origin.y = NSHeight(window->xframe) - NSMaxY(rect);
|
||||
width = NSWidth(rect);
|
||||
height = NSHeight(rect);
|
||||
|
||||
if (width > 0 || height > 0)
|
||||
{
|
||||
[isa waitAllContexts];
|
||||
|
||||
NSDebugLLog (@"XGFlush",
|
||||
@"expose X rect ((%d, %d), (%d, %d))", xi, yi, width, height);
|
||||
/* Temporary protocol until we standardize the backing buffer */
|
||||
|
|
Loading…
Reference in a new issue