parent
3e26b99166
commit
285f7fe346
5
src/E.h
5
src/E.h
|
@ -2297,6 +2297,11 @@ void EConfigureWindow(Window win, unsigned int mask,
|
|||
XWindowChanges * wc);
|
||||
void ESetWindowBackgroundPixmap(Window win, Pixmap pmap);
|
||||
void ESetWindowBackground(Window win, int col);
|
||||
int ETranslateCoordinates(Window src_w, Window dst_w,
|
||||
int src_x, int src_y,
|
||||
int *dest_x_return,
|
||||
int *dest_y_return,
|
||||
Window * child_return);
|
||||
|
||||
#define ESelectInput(win, mask) XSelectInput(disp, win, mask)
|
||||
#define EGetWindowAttributes(win, attr) XGetWindowAttributes(disp, win, attr)
|
||||
|
|
15
src/x.c
15
src/x.c
|
@ -829,6 +829,21 @@ ESetWindowBackground(Window win, int col)
|
|||
XSetWindowBackground(disp, win, col);
|
||||
}
|
||||
|
||||
int
|
||||
ETranslateCoordinates(Window src_w, Window dst_w,
|
||||
int src_x, int src_y,
|
||||
int *dest_x_return,
|
||||
int *dest_y_return, Window * child_return)
|
||||
{
|
||||
Window child;
|
||||
|
||||
if (!child_return)
|
||||
child_return = &child;
|
||||
|
||||
return XTranslateCoordinates(disp, src_w, dst_w, src_x, src_y,
|
||||
dest_x_return, dest_y_return, child_return);
|
||||
}
|
||||
|
||||
void
|
||||
ESelectInputAdd(Window win, long mask)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue