Compare commits

...

4 Commits

Author SHA1 Message Date
patrick96
134d33d1bb Release 3.2.1
Changelog

Fixes:
* fix(ramp): Evenly distribute states (#1340), see #1328
* fix(i3): Play nice with workspace_auto_back_and_forth (#1312)
* fix(controller): don't draw window if writing to stdout (#1322), see #1314
2018-07-30 09:05:48 +02:00
NBonaparte
12d0891fba fix(controller): don't draw window if writing to stdout (#1322)
fixes #1314.
2018-07-30 08:36:57 +02:00
Tim Smith
b33f5eef39 fix(i3): Play nice with workspace_auto_back_and_forth (#1312)
This makes polybar play nice with the i3wm feature `workspace_auto_back_and_forth`, and it is harmless when that option isn't set.
2018-07-30 08:36:57 +02:00
memeplex
750f8223d3 fix(ramp): Evenly distribute states (#1340)
Fixes #1328
2018-07-30 08:36:57 +02:00
5 changed files with 12 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
# Maintainer: Michael Carlberg <c@rlberg.se> # Maintainer: Michael Carlberg <c@rlberg.se>
# Contributor: Michael Carlberg <c@rlberg.se> # Contributor: Michael Carlberg <c@rlberg.se>
pkgname=polybar pkgname=polybar
pkgver=3.2.0 pkgver=3.2.1
pkgrel=1 pkgrel=1
pkgdesc="A fast and easy-to-use status bar" pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64") arch=("i686" "x86_64")

View File

@@ -1,4 +1,4 @@
#pragma once #pragma once
#define GIT_TAG "3.2.0" #define GIT_TAG "3.2.1"
#define GIT_TAG_NAMESPACE v3_2_0 #define GIT_TAG_NAMESPACE v3_2_1

View File

@@ -348,7 +348,12 @@ void controller::read_events() {
*/ */
void controller::process_eventqueue() { void controller::process_eventqueue() {
m_log.info("Eventqueue worker (thread-id=%lu)", this_thread::get_id()); m_log.info("Eventqueue worker (thread-id=%lu)", this_thread::get_id());
m_sig.emit(signals::eventqueue::start{}); if (!m_writeback) {
m_sig.emit(signals::eventqueue::start{});
} else {
// bypass the start eventqueue signal
m_sig.emit(signals::ui::ready{});
}
while (!g_terminate) { while (!g_terminate) {
event evt{}; event evt{};

View File

@@ -14,7 +14,7 @@ namespace drawtypes {
} }
icon_t ramp::get_by_percentage(float percentage) { icon_t ramp::get_by_percentage(float percentage) {
size_t index = percentage * (m_icons.size() - 1) / 100.0f + 0.5f; size_t index = percentage * m_icons.size() / 100.0f;
return m_icons[math_util::cap<size_t>(index, 0, m_icons.size() - 1)]; return m_icons[math_util::cap<size_t>(index, 0, m_icons.size() - 1)];
} }

View File

@@ -223,10 +223,8 @@ namespace modules {
if (cmd.compare(0, strlen(EVENT_CLICK), EVENT_CLICK) == 0) { if (cmd.compare(0, strlen(EVENT_CLICK), EVENT_CLICK) == 0) {
cmd.erase(0, strlen(EVENT_CLICK)); cmd.erase(0, strlen(EVENT_CLICK));
if (i3_util::focused_workspace(conn)->name != cmd) { m_log.info("%s: Sending workspace focus command to ipc handler", name());
m_log.info("%s: Sending workspace focus command to ipc handler", name()); conn.send_command("workspace " + cmd);
conn.send_command("workspace " + cmd);
}
return true; return true;
} }