1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

Changed PPosition fix a little.

This commit is contained in:
dan
1999-09-17 01:07:27 +00:00
parent 8747093e64
commit 623106e922
2 changed files with 3 additions and 3 deletions

View File

@@ -311,12 +311,12 @@ setSizeHints(WMWindow *win)
hints->flags = 0; hints->flags = 0;
if (win->flags.upos_set) { if (win->flags.upos_set) {
hints->flags |= USPosition; /* shouldn't be PPosition ? --Dan */ hints->flags |= PPosition;
hints->x = win->upos.x; hints->x = win->upos.x;
hints->y = win->upos.y; hints->y = win->upos.y;
} }
if (win->usize.width>0 && win->usize.height>0) { if (win->usize.width>0 && win->usize.height>0) {
hints->flags |= USSize; /* shouldn't be PSize ? --Dan */ hints->flags |= PSize;
hints->width = win->usize.width; hints->width = win->usize.width;
hints->height = win->usize.height; hints->height = win->usize.height;
} }

View File

@@ -718,7 +718,7 @@ wClientGetNormalHints(WWindow *wwin, XWindowAttributes *wattribs, Bool geometry,
#ifdef IGNORE_PPOSITION #ifdef IGNORE_PPOSITION
wwin->normal_hints->flags &= ~PPosition; wwin->normal_hints->flags &= ~PPosition;
#endif #endif
if (!pre_icccm && !wwin->screen_ptr->flags.startup && geometry) { if (/* check this !pre_icccm && */!wwin->screen_ptr->flags.startup && geometry) {
if (wwin->normal_hints->flags & (USPosition|PPosition)) { if (wwin->normal_hints->flags & (USPosition|PPosition)) {
*x = wwin->normal_hints->x; *x = wwin->normal_hints->x;
*y = wwin->normal_hints->y; *y = wwin->normal_hints->y;