Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rephrase and fix typos in comments

  • Loading branch information...
commit d9001d5bfeced39dc4044f1e65a69f0767a4443d 1 parent f504194
@Cloudef Cloudef authored committed
Showing with 8 additions and 7 deletions.
  1. +8 −7 monsterwm.c
View
15 monsterwm.c
@@ -1125,9 +1125,10 @@ void motionnotify(XEvent *e) {
change_monitor(&(Arg){.i = m});
}
-/* return which monitor area belongs,
- * checks two times, at first check try check accurately,
- * second time check without using height, third time without using width */
+/* return which monitor area belongs.
+ * first try check accurately,
+ * next check without using height,
+ * then without using width */
int areatomonitor(int x, int y) {
for (int c=0; c<2; ++c)
for (int m=0; m<MONITORS; ++m)
@@ -1161,9 +1162,9 @@ void select_monitor(int i) {
wx = monitors[i].wx;
wy = monitors[i].wy;
- /* select desktop, here would overrite the
- * real desktop with save_desktop, workaround,
- * by reimplentint select_desktop without saving. */
+ /* using select desktop here would overwrite the
+ * real desktop with save_desktop. Workaround by
+ * reimplementing select_desktop without saving. */
master_size = desktops[current_desktop].master_size;
mode = desktops[current_desktop].mode;
growth = desktops[current_desktop].growth;
@@ -1174,7 +1175,7 @@ void select_monitor(int i) {
current_monitor = i;
}
-/* jump and focus the next or previous montior */
+/* jump and focus the next or previous monitor */
void rotate_monitor(const Arg *arg) {
change_monitor(&(Arg){.i = (MONITORS + current_monitor + arg->i) % MONITORS});
}
Please sign in to comment.
Something went wrong with that request. Please try again.