Skip to content
Snippets Groups Projects
Commit d8b9c401 authored by Enrico Weigelt's avatar Enrico Weigelt
Browse files

(submitted) policy: add forced maximization

Give users the freedom to force specific applications to be started maximized.
This is controlled by window policy attribute "placement.maximize" (bool).

Closes: xfce/xfwm4#184


Signed-off-by: default avatarEnrico Weigelt, metux IT consult <info@metux.net>
parent 4c81fca0
No related branches found
No related tags found
No related merge requests found
......@@ -1390,6 +1390,12 @@ clientApplyInitialState (Client *c)
g_return_if_fail (c != NULL);
TRACE ("client \"%s\" (0x%lx)", c->name, c->window);
if (clientPolicyGetBool (c, "placement.maximize", FALSE) &&
!(c->type & (WINDOW_TYPE_DIALOG | WINDOW_TYPE_DONT_PLACE)))
{
FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED);
}
/* We check that afterwards to make sure all states are now known */
if (FLAG_TEST (c->flags, CLIENT_FLAG_MAXIMIZED))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment