The VisibilityNotify function was using elements out fo the XEvent union that belong...
authorDavid Sundstrom <sunds@bluespace.com>
Wed, 2 Nov 2011 18:36:11 +0000 (13:36 -0500)
committerDavid Sundstrom <sunds@bluespace.com>
Wed, 2 Nov 2011 23:31:14 +0000 (18:31 -0500)
Remove the code that accessed these fields.  The XExposeEvent already has its own function containing the exact same code.

client/X11/xf_event.c

index 8e5a069..9effe06 100644 (file)
@@ -106,31 +106,7 @@ boolean xf_event_Expose(xfInfo* xfi, XEvent* event, boolean app)
 
 boolean xf_event_VisibilityNotify(xfInfo* xfi, XEvent* event, boolean app)
 {
-       int x, y;
-       int w, h;
-
-       x = event->xexpose.x;
-       y = event->xexpose.y;
-       w = event->xexpose.width;
-       h = event->xexpose.height;
-
        xfi->unobscured = event->xvisibility.state == VisibilityUnobscured;
-
-       if (app)
-       {
-               xfWindow* xfw;
-               rdpWindow* window;
-               rdpRail* rail = ((rdpContext*) xfi->context)->rail;
-
-               window = window_list_get_by_extra_id(rail->list, (void*) event->xvisibility.window);
-
-               if (window != NULL)
-               {
-                       xfw = (xfWindow*) window->extra;
-                       xf_UpdateWindowArea(xfi, xfw, x, y, w, h);
-               }
-       }
-
        return True;
 }