From 865b25172ce26d8f6b0b002558dc3c6ccfac9dea Mon Sep 17 00:00:00 2001 From: Avahe Kellenberger Date: Thu, 24 Aug 2023 00:59:17 -0400 Subject: [PATCH] v0.7.37 --- nimdow.nimble | 2 +- src/nimdowpkg/ipc/cli.nim | 2 +- src/nimdowpkg/monitor.nim | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nimdow.nimble b/nimdow.nimble index fa8be82..23cf27d 100644 --- a/nimdow.nimble +++ b/nimdow.nimble @@ -1,5 +1,5 @@ # Package -version = "0.7.36" +version = "0.7.37" author = "avahe-kellenberger" description = "A window manager written in nim" license = "GPL v2" diff --git a/src/nimdowpkg/ipc/cli.nim b/src/nimdowpkg/ipc/cli.nim index be773bc..e2b28c6 100644 --- a/src/nimdowpkg/ipc/cli.nim +++ b/src/nimdowpkg/ipc/cli.nim @@ -11,7 +11,7 @@ import ../wmcommands, ../logger -const version* = "v0.7.36" +const version* = "v0.7.37" const commit* = getEnv("LATEST_COMMIT") proc handleWMCommand(commandStr: string): bool = diff --git a/src/nimdowpkg/monitor.nim b/src/nimdowpkg/monitor.nim index 5f3bec3..aefbe91 100644 --- a/src/nimdowpkg/monitor.nim +++ b/src/nimdowpkg/monitor.nim @@ -465,8 +465,8 @@ proc addClient*(this: Monitor, client: var Client, assignToSelectedTags: bool = this.statusBar.redraw() proc rotateClients*(this: Monitor) = - if this.clients.len > 1: - let clientNode = this.taggedClients.findLastLayoutNode() + let clientNode = this.taggedClients.findLastLayoutNode() + if clientNode != nil: this.clients.remove(clientNode) this.clients.prepend(clientNode) this.doLayout()