kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=7cbd476788c7d74b11f1ea47a7ac34722028dbb8
commit 7cbd476788c7d74b11f1ea47a7ac34722028dbb8 Author: Kim Woelders <k...@woelders.dk> Date: Fri Aug 13 11:39:31 2021 +0200 x.c: Remove ancient unused ECreateFocusWindow() --- src/x.c | 35 ----------------------------------- src/xwin.h | 1 - 2 files changed, 36 deletions(-) diff --git a/src/x.c b/src/x.c index b20d7187..80ac4c4f 100644 --- a/src/x.c +++ b/src/x.c @@ -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) { diff --git a/src/xwin.h b/src/xwin.h index 5422287f..bbd9fbe5 100644 --- a/src/xwin.h +++ b/src/xwin.h @@ -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); --