Commit a43c50bb authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Rootless.c: use designated initializers

This fixes a possible unitialized struct variable.
parent 1664e105
......@@ -207,24 +207,18 @@ Window nxagentRootlessWMTopLevelWindow(WindowPtr pWin);
void nxagentConfigureRootlessWindow(WindowPtr pWin, int x, int y, int w, int h, int bw,
WindowPtr pSib, int stack_mode, Mask mask)
{
XWindowChanges changes;
Window sibw = 0;
changes.x = x;
changes.y = y;
changes.width = w;
changes.height = h;
changes.border_width = bw;
changes.stack_mode = stack_mode;
XWindowChanges changes = {
.x = x,
.y = y,
.width = w,
.height = h,
.border_width = bw,
.stack_mode = stack_mode
};
if (pSib)
{
sibw = nxagentWindow(pSib);
}
if (sibw)
{
changes.sibling = sibw;
changes.sibling = nxagentWindow(pSib);
}
XConfigureWindow(nxagentDisplay, nxagentWindow(pWin), mask, &changes);
......
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