[x11,client] clean up color depth initialization

* Do not use transparency except in remote application mode.
* Fall back to default color depth in rail mode if no transparency
  supported
This commit is contained in:
Armin Novak 2022-11-28 07:13:54 +01:00 committed by akallabeth
parent 22d5394993
commit eda1359f52

View File

@ -465,7 +465,9 @@ static const char* get_shm_id(void)
Window xf_CreateDummyWindow(xfContext* xfc)
{
return XCreateSimpleWindow(xfc->display, DefaultRootWindow(xfc->display), 0, 0, 1, 1, 0, 0, 0);
return XCreateWindow(xfc->display, RootWindowOfScreen(xfc->screen), xfc->workArea.x,
xfc->workArea.y, 1, 1, 0, xfc->depth, InputOutput, xfc->visual,
xfc->attribs_mask, &xfc->attribs);
}
void xf_DestroyDummyWindow(xfContext* xfc, Window window)