~thopiekar/gnustep/gnustep-back

« back to all changes in this revision

Viewing changes to Source/x11/XGServerWindow.m

  • Committer: fredkiefer
  • Date: 2017-04-16 11:57:05 UTC
  • Revision ID: svn-v4:72102866-910b-0410-8b05-ffd578937521:libs/back/trunk:40485
        Fix some clang static analyser warnings reported by
        Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2745
2745
    && (window->buffer_width != width || window->buffer_height != height)
2746
2746
    && (window->gdriverProtocol & GDriverHandlesBacking) == 0)
2747
2747
    {
2748
 
      [isa waitAllContexts];
 
2748
      [[self class] waitAllContexts];
2749
2749
      XFreePixmap(dpy, window->buffer);
2750
2750
      window->buffer = 0;
2751
2751
      if (window->alpha_buffer)
3623
3623
      values.foreground = window->xwn_attrs.background_pixel;
3624
3624
      valuemask = (GCFunction | GCPlaneMask | GCClipMask | GCForeground);
3625
3625
      XChangeGC(dpy, window->gc, valuemask, &values);
3626
 
      [isa waitAllContexts];
 
3626
      [[self class] waitAllContexts];
3627
3627
      if ((window->gdriverProtocol & GDriverHandlesExpose))
3628
3628
        {
3629
3629
          /* Temporary protocol until we standardize the backing buffer */
3698
3698
 
3699
3699
  if (width > 0 || height > 0)
3700
3700
    {
3701
 
      [isa waitAllContexts];
 
3701
      [[self class] waitAllContexts];
3702
3702
      if ((window->gdriverProtocol & GDriverHandlesBacking))
3703
3703
        {
3704
3704
          NSDebugLLog (@"XGFlush",