fix(tray): Ensure minimum window width

This commit is contained in:
Michael Carlberg 2016-11-04 21:08:14 +01:00
parent ccee2ba025
commit 23a57b6226

View File

@ -486,6 +486,10 @@ void traymanager::create_window() { // {{{
auto x = calculate_x(w); auto x = calculate_x(w);
auto y = calculate_y(); auto y = calculate_y();
if (w < 1) {
w = 1;
}
m_tray = m_connection.generate_id(); 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); m_log.trace("tray: Create tray window %s, (%ix%i+%i+%i)", m_connection.id(m_tray), w, h, x, y);