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;
|
||||
int i;
|
||||
int px = x, py = y;
|
||||
XSizeHints sh;
|
||||
|
||||
r = malloc(sizeof(*r));
|
||||
|
||||
@@ -148,6 +149,9 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
|
||||
r->top = 0;
|
||||
}
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user