From 23a57b622618e0aea466cc0b58e41c273925e3d2 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 4 Nov 2016 21:08:14 +0100 Subject: [PATCH] fix(tray): Ensure minimum window width --- src/x11/tray.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/x11/tray.cpp b/src/x11/tray.cpp index 494e6f89..45d269e6 100644 --- a/src/x11/tray.cpp +++ b/src/x11/tray.cpp @@ -486,6 +486,10 @@ void traymanager::create_window() { // {{{ auto x = calculate_x(w); auto y = calculate_y(); + if (w < 1) { + w = 1; + } + m_tray = m_connection.generate_id(); m_log.trace("tray: Create tray window %s, (%ix%i+%i+%i)", m_connection.id(m_tray), w, h, x, y);