Commit 2441b2ce authored by Pete Scheyen's avatar Pete Scheyen
Browse files

menu: restore focus to feh window after hiding menu

focus was set to menu_cover on menu open but never restore on
hide (say after performing a File->Delete); on Xwayland RevertToPointerRoot
doesn't recover it; added an explicit call to XSetInputFocus back
to fehwin->win before destroying the cover window.
parent fb0934d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -514,6 +514,8 @@ void feh_menu_hide(feh_menu * m, int func_free)
	if (m == menu_root) {
		if (menu_cover) {
			D(("DESTROYING menu cover\n"));
			if (m->fehwin)
				XSetInputFocus(disp, m->fehwin->win, RevertToPointerRoot, CurrentTime);
			XDestroyWindow(disp, menu_cover);
			menu_cover = 0;
		}