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