From 2e5c9cbe714b749f8b708e9105ac6a9a692e622e Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Sun, 13 Aug 2017 18:19:26 +0200 Subject: [PATCH] tiling: show notification if a client cannot be tiled this at least tells the user that the client could not be tiled and not just mysterically putting it under floating. --- src/modules/tiling/e_mod_tiling.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index 3b86d33f1..4a4a1e391 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -861,7 +861,21 @@ toggle_floating(E_Client *ec) void tiling_e_client_does_not_fit(E_Client *ec) { + E_Notification_Notify n; + Eina_Strbuf *buf; + + buf = eina_strbuf_new(); + eina_strbuf_append_printf(buf, "Window %s cannot be tiled\n", ec->netwm.name); + + n.app_name = _("Tiling"); + n.icon.icon = "dialog-error"; + n.summary = _("Window cannot be tiled"); + n.body = eina_strbuf_string_get(buf); + n.timeout = 2000; + e_notification_client_send(&n, NULL, NULL); toggle_floating(ec); + + eina_strbuf_string_free(buf); } static void