Commit 3c92b5db authored by Ulrich Sibiller's avatar Ulrich Sibiller

Screen.c: fix size calculation in rootless mode

There's no need to reduce the size to 75% in rootless mode. We always want to have the full size then. Fixes ArcticaProject/nx-libs#757 (Part 2/2)
parent 43d3b655
......@@ -1080,12 +1080,26 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
if (nxagentOption(Width) > w)
{
nxagentChangeOption(Width, w * 3 / 4);
if (nxagentOption(Rootless))
{
nxagentChangeOption(Width, w);
}
else
{
nxagentChangeOption(Width, w * 3 / 4);
}
}
if (nxagentOption(Height) > h)
{
nxagentChangeOption(Height, h * 3 / 4);
if (nxagentOption(Rootless))
{
nxagentChangeOption(Height, h);
}
else
{
nxagentChangeOption(Height, h * 3 / 4);
}
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment