Ignore:
Timestamp:
May 26, 2009, 3:34:36 PM (15 years ago)
Author:
garnier
Message:

update pas dans CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLXmViewer.cc

    r1041 r1049  
    629629                        frame      // widget to be used for work window
    630630                        );
    631 
     631 
    632632  XtRealizeWidget(shell);
    633633 
     
    636636
    637637  win = XtWindow (glxarea);
     638 
     639  /* Change once the bit gravity of the Drawing Area; default
     640     is north west and we want forget, so that resize
     641     always generates exposure events */
     642   XSetWindowAttributes attrs;
     643   attrs.bit_gravity = ForgetGravity ;
     644   XChangeWindowAttributes(XtDisplay(glxarea), win,
     645                               CWBitGravity, &attrs);
    638646
    639647  glXMakeCurrent (dpy, win, cx);
    640648
    641   // This should be add AFTER glXMakeCurrent done because it will fire a resizeCallback
     649   // This should be add AFTER glXMakeCurrent done because it will fire a resizeCallback
    642650  XtAddCallback (glxarea,
    643                  XmNresizeCallback,
    644                  resize_callback,
    645                  this);
    646 
     651                 XmNresizeCallback,
     652                 resize_callback,
     653                 this);
     654 
    647655  XtAddCallback (glxarea,
    648656                 XmNexposeCallback,
    649657                 expose_callback,
     658                 this);
     659
     660  XtAddCallback (glxarea,
     661                 XmNactivateCallback,
     662                 activate_callback,
    650663                 this);
    651664
Note: See TracChangeset for help on using the changeset viewer.