mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 16:10:50 +00:00
gravity
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@666 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -128,6 +128,7 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
|
|||||||
unsigned long n = 1;
|
unsigned long n = 1;
|
||||||
int i;
|
int i;
|
||||||
int px = x, py = y;
|
int px = x, py = y;
|
||||||
|
XSizeHints sh;
|
||||||
|
|
||||||
r = malloc(sizeof(*r));
|
r = malloc(sizeof(*r));
|
||||||
|
|
||||||
@@ -147,7 +148,10 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
|
|||||||
p = parent->window;
|
p = parent->window;
|
||||||
r->top = 0;
|
r->top = 0;
|
||||||
}
|
}
|
||||||
r->window = XCreateSimpleWindow(r->display, p, px, py, width, height, 0, 0, WhitePixel(r->display, DefaultScreen(r->display)));
|
r->window = XCreateSimpleWindow(r->display, p, px, py, width, height, 0, 0, WhitePixel(r->display, DefaultScreen(r->display)));
|
||||||
|
sh.flags = PWinGravity;
|
||||||
|
sh.win_gravity = StaticGravity;
|
||||||
|
XSetWMNormalHints(r->display, r->window, &sh);
|
||||||
|
|
||||||
xvi = get_visual_info(r->display);
|
xvi = get_visual_info(r->display);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user