aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2017-12-29 12:54:54 +0000
committerokan2017-12-29 12:54:54 +0000
commit0aa3e7d08d83b487beb552501005df507b1ac0f8 (patch)
treebfe46fad158f7f959a92daac6f3938f3257b3918 /kbfunc.c
parent2adf37a96f7d23964494764d3ebc4e788711acf2 (diff)
downloadcwm-0aa3e7d08d83b487beb552501005df507b1ac0f8.tar.gz
add helper function client_show to bring together like actions for unhide/raise
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 03a0ee7..a79cfc9 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.155 2017/12/19 19:38:43 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.156 2017/12/29 12:54:54 okan Exp $
*/
#include <sys/types.h>
@@ -471,10 +471,7 @@ kbfunc_menu_client(void *ctx, struct cargs *cargs)
if ((mi = menu_filter(sc, &menuq, "window", NULL, mflags,
search_match_client, search_print_client)) != NULL) {
cc = (struct client_ctx *)mi->ctx;
- if (cc->flags & CLIENT_HIDDEN)
- client_unhide(cc);
- else
- client_raise(cc);
+ client_show(cc);
if (old_cc)
client_ptrsave(old_cc);
client_ptrwarp(cc);