3838#include "selection.h"
3939#include "keysym.h"
4040#include "fb.h"
41- #include "mibstorest.h"
4241#include "osdep.h"
4342
4443#include "Agent.h"
@@ -2537,55 +2536,15 @@ int nxagentHandleGraphicsExposeEvent(XEvent *X)
25372536{
25382537 /*
25392538 * Send an expose event to client, instead of graphics
2540- * expose. If target drawable is a backing pixmap, send
2541- * expose event for the saved window, else do nothing.
2539+ * expose.
25422540 */
25432541
25442542 RegionPtr exposeRegion ;
25452543 BoxRec rect ;
25462544 WindowPtr pWin ;
2547- StoringPixmapPtr pStoringPixmapRec = NULL ;
2548- miBSWindowPtr pBSwindow = NULL ;
2549- int drawableType ;
25502545
25512546 pWin = nxagentWindowPtr (X -> xgraphicsexpose .drawable );
25522547
2553- if (pWin != NULL )
2554- {
2555- drawableType = DRAWABLE_WINDOW ;
2556- }
2557- else
2558- {
2559- drawableType = DRAWABLE_PIXMAP ;
2560- }
2561-
2562- if (drawableType == DRAWABLE_PIXMAP )
2563- {
2564- pStoringPixmapRec = nxagentFindItemBSPixmapList (X -> xgraphicsexpose .drawable );
2565-
2566- if (pStoringPixmapRec == NULL )
2567- {
2568- #ifdef TEST
2569- fprintf (stderr , "nxagentHandleGraphicsExposeEvent: WARNING! Storing pixmap not found.\n" );
2570- #endif
2571-
2572- return 1 ;
2573- }
2574-
2575- pBSwindow = (miBSWindowPtr ) pStoringPixmapRec -> pSavedWindow -> backStorage ;
2576-
2577- if (pBSwindow == NULL )
2578- {
2579- #ifdef TEST
2580- fprintf (stderr , "nxagentHandleGraphicsExposeEvent: WARNING! Back storage not found.\n" );
2581- #endif
2582-
2583- return 1 ;
2584- }
2585-
2586- pWin = pStoringPixmapRec -> pSavedWindow ;
2587- }
2588-
25892548 /*
25902549 * Rectangle affected by GraphicsExpose
25912550 * event.
@@ -2598,33 +2557,6 @@ int nxagentHandleGraphicsExposeEvent(XEvent *X)
25982557
25992558 exposeRegion = RegionCreate (& rect , 0 );
26002559
2601- if (drawableType == DRAWABLE_PIXMAP )
2602- {
2603- #ifdef TEST
2604- fprintf (stderr , "nxagentHandleGraphicsExposeEvent: Handling GraphicsExpose event on pixmap with id"
2605- " [%lu].\n" , X -> xgraphicsexpose .drawable );
2606- #endif
2607-
2608- /*
2609- * The exposeRegion coordinates are relative
2610- * to the pixmap to which GraphicsExpose
2611- * event refers. But the BS coordinates of
2612- * the savedRegion are relative to the
2613- * window.
2614- */
2615-
2616- RegionTranslate (exposeRegion , pStoringPixmapRec -> backingStoreX ,
2617- pStoringPixmapRec -> backingStoreY );
2618-
2619- /*
2620- * We remove from SavedRegion the part
2621- * affected by the GraphicsExpose event.
2622- */
2623-
2624- RegionSubtract (& (pBSwindow -> SavedRegion ), & (pBSwindow -> SavedRegion ),
2625- exposeRegion );
2626- }
2627-
26282560 /*
26292561 * Store the exposeRegion in order to send
26302562 * the expose event later. The coordinates
0 commit comments