Minimize/Restore

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
Minimize/Restore

Submitted by Anonymous on Mon, 03/05/2001 - 16:49. Developers
How can I minimize and maximize a window without use the options in the title bar? I want to do this
in the code.
Thank you in advance.

machnone

To minimize the window, call XIconifyWindow(XtDisplay(display), XtWindow(w), screen_number).
To restore, call XMapWindow(XtDisplay (display), XtWindow (window)).

ICS_support

These correspond to Xlib calls (XIconifyWindow and XMapWindow).

Note, though, that there is no Xlib equivalent of the mwm function f.maximize, as mwm calculates the window size and location in that case.