call xf_SetWindowTitle before XMapWindow, so window manager can act on window name

This commit is contained in:
ileGITimo 2018-11-17 06:32:52 -08:00
parent fe1a79759e
commit d5dd983bcd

View File

@ -558,6 +558,7 @@ xfWindow* xf_CreateDesktopWindow(xfContext* xfc, char* name, int width,
XSelectInput(xfc->display, window->handle, input_mask);
XClearWindow(xfc->display, window->handle);
xf_SetWindowTitleText(xfc, window->handle, name);
XMapWindow(xfc->display, window->handle);
xf_input_init(xfc, window->handle);
@ -587,7 +588,6 @@ xfWindow* xf_CreateDesktopWindow(xfContext* xfc, char* name, int width,
}
window->floatbar = xf_floatbar_new(xfc, window->handle);
xf_SetWindowTitleText(xfc, window->handle, name);
return window;
}