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.
Mon, 07/02/2012 - 12:40
#1
Minimize/Restore
To minimize the window, call XIconifyWindow(XtDisplay(display), XtWindow(w), screen_number).
To restore, call XMapWindow(XtDisplay (display), XtWindow (window)).
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.