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.
This commit is contained in:
okan
2016-10-03 13:41:30 +00:00
parent 1d3a6905f1
commit a8a111dffd
3 changed files with 7 additions and 5 deletions

View File

@@ -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);