x.c: Remove ancient unused ECreateFocusWindow()

This commit is contained in:
Kim Woelders 2021-08-13 11:39:31 +02:00
parent 77c9525cea
commit 7cbd476788
2 changed files with 0 additions and 36 deletions

35
src/x.c
View File

@ -445,41 +445,6 @@ ECreateEventWindow(Win parent, int x, int y, int w, int h)
return win;
}
#if 0 /* Not used */
/*
* create a window which will accept the keyboard focus when no other
* windows have it
*/
Win
ECreateFocusWindow(Win parent, int x, int y, int w, int h)
{
Win win;
XSetWindowAttributes attr;
attr.backing_store = NotUseful;
attr.override_redirect = False;
attr.colormap = WinGetCmap(VROOT);
attr.border_pixel = 0;
attr.background_pixel = 0;
attr.save_under = False;
attr.event_mask = KeyPressMask | FocusChangeMask;
EX_Window xwin, xpar;
win = XCreateWindow(disp, parent, x, y, w, h, 0, 0, InputOnly,
CopyFromParent,
CWOverrideRedirect | CWSaveUnder | CWBackingStore |
CWColormap | CWBackPixel | CWBorderPixel | CWEventMask,
&attr);
XSetWindowBackground(disp, win, 0);
XMapWindow(disp, win);
XSetInputFocus(disp, win, RevertToParent, CurrentTime);
return win;
}
#endif
void
EMoveWindow(Win win, int x, int y)
{

View File

@ -161,7 +161,6 @@ Win ECreateObjectWindow(Win parent, int x, int y, int w,
int h, int saveunder, int type,
Win cwin);
Win ECreateEventWindow(Win parent, int x, int y, int w, int h);
Win ECreateFocusWindow(Win parent, int x, int y, int w, int h);
void EWindowSync(Win win);
void EWindowSetGeometry(Win win, int x, int y, int w, int h,
int bw);