tiling: give a better error message if a client doesnt fit

This commit is contained in:
Marcel Hollerbach 2017-08-15 10:57:37 +02:00 committed by Mike Blumenkrantz
parent e32fab8b8e
commit 7d2fdfa880
1 changed files with 4 additions and 1 deletions

View File

@ -711,7 +711,10 @@ tiling_e_client_does_not_fit(E_Client *ec)
Eina_Strbuf *buf;
buf = eina_strbuf_new();
eina_strbuf_append_printf(buf, "Window %s cannot be tiled\n", ec->netwm.name);
if (ec->netwm.name)
eina_strbuf_append_printf(buf, "Window %s cannot be tiled\n", ec->netwm.name);
else
eina_strbuf_append(buf, "A Window cannot be tiled\n");
n.app_name = _("Tiling");
n.icon.icon = "dialog-error";