diff options
author | okan | 2014-08-20 15:15:29 +0000 |
---|---|---|
committer | okan | 2014-08-20 15:15:29 +0000 |
commit | baef75bfc55b19ae2f4f1a5f09c82d35539d5637 (patch) | |
tree | 1781b9efc7f70975adf5efab5cc71169288c2032 /screen.c | |
parent | 081e6ab493c1cb965f3f03d6b55f2a24117e9290 (diff) | |
download | cwm-baef75bfc55b19ae2f4f1a5f09c82d35539d5637.tar.gz |
Purely mechanical; unify 'num', 'no' and 'shortcut'.
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: screen.c,v 1.62 2014/08/20 12:35:39 okan Exp $ + * $OpenBSD: screen.c,v 1.63 2014/08/20 15:15:29 okan Exp $ */ #include <sys/param.h> @@ -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; |