mirror of
https://github.com/0intro/wmii
synced 2024-12-25 21:06:57 +03:00
changed blitz_create_win
This commit is contained in:
parent
c2475e7e28
commit
14ba871977
@ -77,8 +77,8 @@ void blitz_loadfont(BlitzFont *font, char *fontstr);
|
||||
int blitz_loadcolor(BlitzColor *c, char *colstr);
|
||||
|
||||
/* window.c */
|
||||
void blitz_create_win(BlitzWindow *win, unsigned long mask,
|
||||
int x, int y, int w, int h);
|
||||
BlitzWindow *blitz_create_win(unsigned long mask,
|
||||
int x, int y, int w, int h);
|
||||
void blitz_resize_win(BlitzWindow *win,
|
||||
int x, int y, int w, int h);
|
||||
void blitz_destroy_win(BlitzWindow *win);
|
||||
|
@ -8,10 +8,10 @@
|
||||
|
||||
#include "blitz.h"
|
||||
|
||||
void
|
||||
blitz_create_win(BlitzWindow *win, unsigned long mask,
|
||||
int x, int y, int w, int h)
|
||||
BlitzWindow *
|
||||
blitz_create_win(unsigned long mask, int x, int y, int w, int h)
|
||||
{
|
||||
BlitzWindow *win = cext_emallocz(sizeof(BlitzWindow));
|
||||
XSetWindowAttributes wa;
|
||||
wa.override_redirect = 1;
|
||||
wa.background_pixmap = ParentRelative;
|
||||
@ -26,6 +26,7 @@ blitz_create_win(BlitzWindow *win, unsigned long mask,
|
||||
win->rect.y = y;
|
||||
win->rect.width = w;
|
||||
win->rect.height = h;
|
||||
return win;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user