Hello community,

here is the log from the commit of package waybar for openSUSE:Factory checked 
in at 2019-05-03 22:47:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/waybar (Old)
 and      /work/SRC/openSUSE:Factory/.waybar.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "waybar"

Fri May  3 22:47:29 2019 rev:5 rq:700319 version:0.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/waybar/waybar.changes    2019-04-26 
22:54:57.665295380 +0200
+++ /work/SRC/openSUSE:Factory/.waybar.new.5148/waybar.changes  2019-05-03 
22:47:31.379920240 +0200
@@ -1,0 +2,11 @@
+Fri May  3 06:52:48 UTC 2019 - mvet...@suse.com
+
+- Update to 0.6.1:
+  Added:
+  * Labels rotation #287
+  Changed:
+  * s/hidded/hidden/ typo fixed 4d4562a
+  * JSON parser threads concurrence fixed d027243
+  * Custom modules with once interval fixed e8f31a0
+
+-------------------------------------------------------------------

Old:
----
  0.6.0.tar.gz

New:
----
  0.6.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ waybar.spec ++++++
--- /var/tmp/diff_new_pack.mTCPE7/_old  2019-05-03 22:47:31.867921360 +0200
+++ /var/tmp/diff_new_pack.mTCPE7/_new  2019-05-03 22:47:31.871921369 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           waybar
-Version:        0.6.0
+Version:        0.6.1
 Release:        0
 Summary:        Customizable Wayland bar for Sway and Wlroots based compositors
 License:        MIT

++++++ 0.6.0.tar.gz -> 0.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.6.0/include/modules/sway/ipc/client.hpp 
new/Waybar-0.6.1/include/modules/sway/ipc/client.hpp
--- old/Waybar-0.6.0/include/modules/sway/ipc/client.hpp        2019-04-25 
16:59:22.000000000 +0200
+++ new/Waybar-0.6.1/include/modules/sway/ipc/client.hpp        2019-05-02 
14:31:02.000000000 +0200
@@ -44,6 +44,7 @@
   int              fd_event_;
   std::mutex       mutex_;
   std::mutex       mutex_event_;
+  std::mutex       mutex_parser_;
   util::JsonParser parser_;
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.6.0/meson.build new/Waybar-0.6.1/meson.build
--- old/Waybar-0.6.0/meson.build        2019-04-25 16:59:22.000000000 +0200
+++ new/Waybar-0.6.1/meson.build        2019-05-02 14:31:02.000000000 +0200
@@ -1,6 +1,6 @@
 project(
     'waybar', 'cpp', 'c',
-    version: '0.6.0',
+    version: '0.6.1',
     license: 'MIT',
     default_options : [
         'cpp_std=c++17',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.6.0/resources/style.css 
new/Waybar-0.6.1/resources/style.css
--- old/Waybar-0.6.0/resources/style.css        2019-04-25 16:59:22.000000000 
+0200
+++ new/Waybar-0.6.1/resources/style.css        2019-05-02 14:31:02.000000000 
+0200
@@ -10,9 +10,11 @@
     background: rgba(43, 48, 59, 0.5);
     border-bottom: 3px solid rgba(100, 114, 125, 0.5);
     color: #ffffff;
+    transition-property: background, background-color;
+    transition-duration: .5s;
 }
 
-window#waybar.hidded {
+window#waybar.hidden {
     opacity: 0.2;
 }
 
@@ -32,6 +34,7 @@
 window#waybar.chromium {
     background-color: #DEE1E6;
     color: #000000;
+    border: none;
 }
 
 /* 
https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect
 */
@@ -42,11 +45,19 @@
     border-bottom: 3px solid transparent;
 }
 
+window#waybar.chromium #workspaces button {
+    color: #3F3F3F;
+}
+
 #workspaces button.focused {
     background: #64727D;
     border-bottom: 3px solid #ffffff;
 }
 
+window#waybar.chromium #workspaces button.focused {
+    color: #ffffff;
+}
+
 #workspaces button.urgent {
     background-color: #eb4d4b;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.6.0/src/ALabel.cpp 
new/Waybar-0.6.1/src/ALabel.cpp
--- old/Waybar-0.6.0/src/ALabel.cpp     2019-04-25 16:59:22.000000000 +0200
+++ new/Waybar-0.6.1/src/ALabel.cpp     2019-05-02 14:31:02.000000000 +0200
@@ -7,7 +7,7 @@
     : config_(config),
       format_(config_["format"].isString() ? config_["format"].asString() : 
format),
       interval_(config_["interval"] == "once"
-                    ? 
std::chrono::seconds(std::numeric_limits<int>::infinity())
+                    ? std::chrono::seconds(100000000)
                     : std::chrono::seconds(
                           config_["interval"].isUInt() ? 
config_["interval"].asUInt() : interval)),
       default_format_(format_) {
@@ -16,6 +16,11 @@
     label_.set_max_width_chars(config_["max-length"].asUInt());
     label_.set_ellipsize(Pango::EllipsizeMode::ELLIPSIZE_END);
   }
+
+  if (config_["rotate"].isUInt()) {
+    label_.set_angle(config["rotate"].asUInt());
+  }
+
   if (config_["format-alt"].isString()) {
     event_box_.add_events(Gdk::BUTTON_PRESS_MASK);
     event_box_.signal_button_press_event().connect(sigc::mem_fun(*this, 
&ALabel::handleToggle));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.6.0/src/bar.cpp new/Waybar-0.6.1/src/bar.cpp
--- old/Waybar-0.6.0/src/bar.cpp        2019-04-25 16:59:22.000000000 +0200
+++ new/Waybar-0.6.1/src/bar.cpp        2019-05-02 14:31:02.000000000 +0200
@@ -198,9 +198,9 @@
   visible = !visible;
   auto zone = visible ? height_ : 0;
   if (!visible) {
-    window.get_style_context()->add_class("hidded");
+    window.get_style_context()->add_class("hidden");
   } else {
-    window.get_style_context()->remove_class("hidded");
+    window.get_style_context()->remove_class("hidden");
   }
   zwlr_layer_surface_v1_set_exclusive_zone(layer_surface, zone);
   wl_surface_commit(surface);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.6.0/src/modules/sway/ipc/client.cpp 
new/Waybar-0.6.1/src/modules/sway/ipc/client.cpp
--- old/Waybar-0.6.0/src/modules/sway/ipc/client.cpp    2019-04-25 
16:59:22.000000000 +0200
+++ new/Waybar-0.6.1/src/modules/sway/ipc/client.cpp    2019-05-02 
14:31:02.000000000 +0200
@@ -104,6 +104,7 @@
     }
     total += res;
   }
+  std::lock_guard<std::mutex> lock(mutex_parser_);
   auto parsed = parser_.parse(&payload.front());
   return {data32[0], data32[1], parsed};
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.6.0/src/modules/sway/window.cpp 
new/Waybar-0.6.1/src/modules/sway/window.cpp
--- old/Waybar-0.6.0/src/modules/sway/window.cpp        2019-04-25 
16:59:22.000000000 +0200
+++ new/Waybar-0.6.1/src/modules/sway/window.cpp        2019-05-02 
14:31:02.000000000 +0200
@@ -43,21 +43,19 @@
 
 void Window::onCmd(const struct Ipc::ipc_response& res) {
   auto [nb, id, name, app_id] = getFocusedNode(res.payload);
-  if (nb == 0) {
-    bar_.window.get_style_context()->add_class("empty");
-  } else {
-    bar_.window.get_style_context()->remove_class("empty");
-  }
   if (!app_id_.empty()) {
     bar_.window.get_style_context()->remove_class(app_id_);
   }
-  if (nb == 1) {
+  if (nb == 0) {
+    bar_.window.get_style_context()->add_class("empty");
+  } else if (nb == 1) {
     bar_.window.get_style_context()->add_class("solo");
     if (!app_id.empty()) {
       bar_.window.get_style_context()->add_class(app_id);
     }
   } else {
     bar_.window.get_style_context()->remove_class("solo");
+    bar_.window.get_style_context()->remove_class("empty");
   }
   app_id_ = app_id;
   if (windowId_ != id || window_ != name) {


Reply via email to