Kaynağa Gözat

Merge pull request #11 from paulfariello/master

Correct alignment of sequence in infobar
Martin Duquesnoy 12 yıl önce
ebeveyn
işleme
02e48d1cd8
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      src/status.c

+ 4 - 1
src/status.c

@@ -152,7 +152,10 @@ status_parse(struct status_ctx *ctx)
 #endif /* HAVE_IMLIB2 */
           }
 
-          SLIST_INSERT_TAIL(&ctx->statushead, sq, next, prev);
+          if (sq->align == Right)
+              SLIST_INSERT_HEAD(&ctx->statushead, sq, next);
+          else
+              SLIST_INSERT_TAIL(&ctx->statushead, sq, next, prev);
 
           /*
            * Optional mousebind sequence(s) \<seq>[](button;func;cmd)