eesh: Simplify comms window creation
This commit is contained in:
parent
c74af1d726
commit
90c4959f7e
|
@ -38,12 +38,8 @@ CommsInit(void)
|
|||
Window
|
||||
CommsSetup(Window win __UNUSED__)
|
||||
{
|
||||
XSetWindowAttributes attr;
|
||||
|
||||
attr.override_redirect = False;
|
||||
my_win = XCreateWindow(disp, root_win, -100, -100, 5, 5, 0, 0, InputOnly,
|
||||
DefaultVisual(disp, DefaultScreen(disp)),
|
||||
CWOverrideRedirect, &attr);
|
||||
my_win = XCreateWindow(disp, root_win, -10, -10, 1, 1, 0, 0,
|
||||
InputOnly, CopyFromParent, 0, NULL);
|
||||
|
||||
return my_win;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <sys/select.h>
|
||||
#include "E.h"
|
||||
|
||||
/* Global vars */
|
||||
Display *disp;
|
||||
|
||||
static char buf[10240];
|
||||
|
|
Loading…
Reference in New Issue