1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

- Fixed the PPosition/PSize code (I hope) --Dan

- removed "Ignore PPosition/PSize hints" user options, and reverted to
  the old "Keep Inside Screen"
This commit is contained in:
dan
1999-09-17 23:52:59 +00:00
parent c917f68883
commit dfe360e5c0
10 changed files with 43 additions and 34 deletions

View File

@@ -692,17 +692,6 @@ wManageWindow(WScreen *scr, Window window)
wWindowSetupInitialAttributes(wwin, &window_level, &workspace);
/* if the window has bad PPosition/PSize hints, and user asked to ignore
* them, revert the size values */
if ((wwin->normal_hints->flags & (PSize|PPosition))
&& WFLAGP(wwin, ignore_stupid_hints)) {
wwin->normal_hints->flags &= ~(PPosition|PSize);
x = wattribs.x;
y = wattribs.y;
width = wattribs.width;
height = wattribs.height;
}
#ifdef OLWM_HINTS
if (wwin->client_flags.olwm_transient && wwin->transient_for==None
&& wwin->group_id != None && wwin->group_id != window) {
@@ -884,7 +873,7 @@ wManageWindow(WScreen *scr, Window window)
dontBring = True;
}
if (WFLAGP(wwin, ignore_stupid_hints) && dontBring)
if (WFLAGP(wwin, dont_move_off) && dontBring)
wScreenBringInside(scr, &x, &y, width, height);
}
@@ -1922,7 +1911,7 @@ int req_width, req_height; /* new size of the client */
synth_notify = True;
}
if (WFLAGP(wwin, ignore_stupid_hints))
if (WFLAGP(wwin, dont_move_off))
wScreenBringInside(wwin->screen_ptr, &req_x, &req_y,
req_width, req_height);
if (resize) {
@@ -1998,7 +1987,7 @@ int req_x, req_y; /* new position of the frame */
* a completed (opaque) movement in moveres.c */
#endif
if (WFLAGP(wwin, ignore_stupid_hints))
if (WFLAGP(wwin, dont_move_off))
wScreenBringInside(wwin->screen_ptr, &req_x, &req_y,
wwin->frame->core->width, wwin->frame->core->height);