summaryrefslogtreecommitdiff
path: root/app/cwm/mousefunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-09-08 20:11:23 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-09-08 20:11:23 +0000
commit2bdb96b086cfc4c6f1a320b5b11b75f100a2b757 (patch)
treeb6dd1dc75d5b3d95c009048e364eb91520dab1e2 /app/cwm/mousefunc.c
parentcfa2f9e3fff4a5b0c220b53b9452c6639debad63 (diff)
Remove duplicate client queue (mruq); instead, remove and take the
global Clientq and place it inside screen_ctx since every client belongs to a screen, then use the same per screen clientq to track stacking order (the sole reason for mruq).
Diffstat (limited to 'app/cwm/mousefunc.c')
-rw-r--r--app/cwm/mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c
index 613f21df9..f2ce0ef3a 100644
--- a/app/cwm/mousefunc.c
+++ b/app/cwm/mousefunc.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: mousefunc.c,v 1.78 2014/09/08 13:51:29 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.79 2014/09/08 20:11:22 okan Exp $
*/
#include <sys/param.h>
@@ -219,7 +219,7 @@ mousefunc_menu_unhide(struct client_ctx *cc, union arg *arg)
old_cc = client_current();
TAILQ_INIT(&menuq);
- TAILQ_FOREACH(cc, &Clientq, entry) {
+ TAILQ_FOREACH(cc, &sc->clientq, entry) {
if (cc->flags & CLIENT_HIDDEN) {
wname = (cc->label) ? cc->label : cc->name;
if (wname == NULL)