mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +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:
@@ -715,6 +715,14 @@ wClientGetNormalHints(WWindow *wwin, XWindowAttributes *wattribs, Bool geometry,
|
||||
wwin->normal_hints->min_width = wwin->normal_hints->max_width;
|
||||
}
|
||||
|
||||
#ifdef IGNORE_PPOSITION
|
||||
wwin->normal_hints->flags &= ~PPosition;
|
||||
#endif
|
||||
#if 0
|
||||
/* this seems obsoleted. Now geometry is taken from XGetWindowAttributes()
|
||||
* in XGetNormalHints() we only have the hints themselves.
|
||||
* check this. --Dan
|
||||
*/
|
||||
if (/* check this !pre_icccm && */!wwin->screen_ptr->flags.startup && geometry) {
|
||||
if (wwin->normal_hints->flags & (USPosition|PPosition)) {
|
||||
*x = wwin->normal_hints->x;
|
||||
@@ -725,6 +733,7 @@ wClientGetNormalHints(WWindow *wwin, XWindowAttributes *wattribs, Bool geometry,
|
||||
*height = wwin->normal_hints->height;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user