mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-31 13:05:52 +01:00
Replaced USPosition with PPosition because is a programmatically
requested position.
This commit is contained in:
@@ -40,7 +40,7 @@ typedef struct W_Window {
|
|||||||
unsigned configured:1;
|
unsigned configured:1;
|
||||||
unsigned documentEdited:1;
|
unsigned documentEdited:1;
|
||||||
|
|
||||||
unsigned setUPos:1;
|
unsigned setPPos:1;
|
||||||
unsigned setAspect:1;
|
unsigned setAspect:1;
|
||||||
} flags;
|
} flags;
|
||||||
} _Window;
|
} _Window;
|
||||||
@@ -312,8 +312,8 @@ setSizeHints(WMWindow *win)
|
|||||||
|
|
||||||
hints->flags = 0;
|
hints->flags = 0;
|
||||||
|
|
||||||
if (win->flags.setUPos) {
|
if (win->flags.setPPos) {
|
||||||
hints->flags |= USPosition;
|
hints->flags |= PPosition;
|
||||||
hints->x = win->upos.x;
|
hints->x = win->upos.x;
|
||||||
hints->y = win->upos.y;
|
hints->y = win->upos.y;
|
||||||
}
|
}
|
||||||
@@ -469,7 +469,7 @@ WMSetWindowAspectRatio(WMWindow *win, int minX, int minY,
|
|||||||
void
|
void
|
||||||
WMSetWindowInitialPosition(WMWindow *win, int x, int y)
|
WMSetWindowInitialPosition(WMWindow *win, int x, int y)
|
||||||
{
|
{
|
||||||
win->flags.setUPos = 1;
|
win->flags.setPPos = 1;
|
||||||
win->upos.x = x;
|
win->upos.x = x;
|
||||||
win->upos.y = y;
|
win->upos.y = y;
|
||||||
if (win->view->flags.realized)
|
if (win->view->flags.realized)
|
||||||
|
|||||||
Reference in New Issue
Block a user