home *** CD-ROM | disk | FTP | other *** search
- /* wmup.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
-
- #include <sys/winmgr.h>
- #include "winmgr2.h"
-
- void wm_up (wm_handle wh)
- {
- int idx;
-
- if (wh->used != WM_USED)
- return;
- idx = _wm_idx1 (wh);
- if (idx < 0 || idx+1 == _wm_count)
- return;
- _wm_idx[idx] = _wm_idx[idx+1]; _wm_idx[idx+1] = wh;
- _wm_hide1 (); /* Hide lower windows */
- _wm_put1 (wh); /* Restore window contents */
- }
-