From 59314d892ab90c218f2fd9b63761bf898ac4da2f Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 3 Oct 2016 13:41:30 +0000 Subject: client_ptrwarp should not deal with unhiding or raising clients (non ptr requests); most callers do this already - deal with the few that do not. client_ptrwarp becomes a simple wrapper (setpos) but it will be expanded. --- kbfunc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index 91d7a2a..f30f809 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.127 2016/09/22 14:36:03 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.128 2016/10/03 13:41:30 okan Exp $ */ #include @@ -187,6 +187,8 @@ kbfunc_menu_client(struct client_ctx *cc, union arg *arg) cc = (struct client_ctx *)mi->ctx; if (cc->flags & CLIENT_HIDDEN) client_unhide(cc); + else + client_raise(cc); if (old_cc) client_ptrsave(old_cc); client_ptrwarp(cc); -- cgit v1.2.3-2-gb3c3