XsMotifWindow.C
History
- 03-Mar-96 1.0; Scott W. Sadler (sws@iti-oh.com)
+ 03-Mar-96 1.0; Scott W. Sadler (ssadler@cisco.com)
Created
*/
{
Dimension w, h;
+ if (_topShadowGC == 0) // JACS
+ return;
+
// Get the size of the corner
XtVaGetValues (_base, XmNwidth, &w, XmNheight, &h, NULL);
void _XsMotifSide::_expose (XEvent *event)
{
+ if (_topShadowGC == 0) // JACS
+ return;
// Clear out the window first
void _XsMotifButton::_expose (XEvent *event)
{
+ if (_topShadowGC == 0) // JACS
+ return;
+
Dimension w, h;
// Get the size of the button
void _XsMotifTitle::_expose (XEvent *event)
{
+ if (_topShadowGC == 0) // JACS
+ return;
// Clear out the window first
void _XsMotifIcon::_expose (XEvent *)
{
+ if (_topShadowGC == 0) // JACS
+ return;
+
Dimension iconHeight;
Dimension iconWidth;
setPosition (_savedX, _savedY);
setSize (_savedWidth, _savedHeight);
-
- _maximized = False;
-
-// Redraw the maximize button
-
- _buttons[_XsMotifButton::Maximize]->redraw ( );
}
}
if (_minimized == False)
XtVaSetValues (_base, XmNwidth, w, XmNheight, h, NULL);
+
+// If window was maximized, change the window state back to normal
+
+ if (_maximized == True)
+ {
+ _maximized = False;
+
+// Redraw the maximize button
+
+ _buttons[_XsMotifButton::Maximize]->redraw ( );
+ }
}
else
XsMDIWindow::setSize (w, h); // Cache the points