summary refs log tree commit diff
path: root/screen.c
diff options
context:
space:
mode:
authorokan <okan>2014-08-20 15:15:29 +0000
committerokan <okan>2014-08-20 15:15:29 +0000
commitb31b09dfc26b4b17c025d7196b8b5a4a26f599df (patch)
treeb01dff20394ae619cf5d77887050483913d027f8 /screen.c
parent30da2211ddbc39036e98ae951ea53d9a1793c376 (diff)
downloadcwm-b31b09dfc26b4b17c025d7196b8b5a4a26f599df.tar.gz
cwm-b31b09dfc26b4b17c025d7196b8b5a4a26f599df.tar.xz
cwm-b31b09dfc26b4b17c025d7196b8b5a4a26f599df.zip
Purely mechanical; unify 'num', 'no' and 'shortcut'.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/screen.c b/screen.c
index 2a38831..0621065 100644
--- a/screen.c
+++ b/screen.c
@@ -142,7 +142,7 @@ screen_update_geometry(struct screen_ctx *sc)
 {
 	XineramaScreenInfo	*info = NULL;
 	struct region_ctx	*region;
-	int			 info_no = 0, i;
+	int			 info_num = 0, i;
 
 	sc->view.x = 0;
 	sc->view.y = 0;
@@ -156,13 +156,13 @@ screen_update_geometry(struct screen_ctx *sc)
 
 	/* RandR event may have a CTRC added or removed. */
 	if (XineramaIsActive(X_Dpy))
-		info = XineramaQueryScreens(X_Dpy, &info_no);
+		info = XineramaQueryScreens(X_Dpy, &info_num);
 
 	while ((region = TAILQ_FIRST(&sc->regionq)) != NULL) {
 		TAILQ_REMOVE(&sc->regionq, region, entry);
 		free(region);
 	}
-	for (i = 0; i < info_no; i++) {
+	for (i = 0; i < info_num; i++) {
 		region = xmalloc(sizeof(*region));
 		region->num = i;
 		region->area.x = info[i].x_org;