get the window's title before adding it to the workspace, since the workspace menu wants that title

This commit is contained in:
Dana Jansens 2002-07-29 05:25:30 +00:00
parent 03f9d6170b
commit f61a455ec1

View file

@ -261,6 +261,10 @@ BlackboxWindow::BlackboxWindow(Blackbox *b, Window w, BScreen *s) {
configureShape();
#endif // SHAPE
// get the window's title before adding it to the workspace
getWMName();
getWMIconName();
if (blackbox_attrib.workspace >= screen->getWorkspaceCount())
screen->getCurrentWorkspace()->addWindow(this, place_window);
else
@ -448,8 +452,6 @@ Window BlackboxWindow::createChildWindow(Window parent, Cursor cursor) {
void BlackboxWindow::associateClientWindow(void) {
XSetWindowBorderWidth(blackbox->getXDisplay(), client.window, 0);
getWMName();
getWMIconName();
XChangeSaveSet(blackbox->getXDisplay(), client.window, SetModeInsert);