https://bugs.kde.org/show_bug.cgi?id=502075

--- Comment #4 from Carlo Wood <[email protected]> ---
There is clearly a race condition here (I'm heavily testing this because I am
writing a "konsole session store/restore" service).
I worked around the fact that sometimes a `konsole --tabs-from-file ...` isn't
managed afterwards by running `wmctrl -ia $WID` afterwards where I use xdotool
to find the newly created window.

See the project here (link to the konsole-load script):
https://github.com/CarloWood/konsole-session-restore/blob/master/konsole-load
Currently in function apply_window_properties(), on line 130+ we have:
```
    # Activate the window in case it isn't (see
https://bugs.kde.org/show_bug.cgi?id=487896).
    wmctrl -ia "$wid"

    # Move window to the correct workspace.
    wmctrl -ir "$wid" -t "${WIN_WORKSPACES[$i]}" || true

    # Fix the geometry.
    wmctrl -ir "$wid" -e
"0,${WIN_GEOM_X[$i]},${WIN_GEOM_Y[$i]},${WIN_GEOM_W[$i]},${WIN_GEOM_H[$i]}" ||
true
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to