forked from enlightenment/enlightenment
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.
This commit is contained in:
parent
0d5bc403c6
commit
2e5c9cbe71
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue