gravity
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@666 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
8e8bc2e740
commit
76e0cff378
1 changed files with 5 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
@ -147,7 +148,10 @@ MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) {
|
|||
p = parent->window;
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue