Sublime Forum

Window opens oddly on Kubuntu KDE plasma

#1

I am running Sublime Merge on Kubuntu 20.04.

When I first open it, the window opens behind any other open windows. If I alt-tab, it shows sublime merge as at the top of the stack, even though it is at the bottom. This only occurs with sublime merge. In addition, it will always open on the last workspace it was used on, instead of the current workspace (which is the expected behaviour).

Anyone else running on Kubuntu and see this behaviour? Any ideas how to fix it?

0 Likes

#2

I have same problem, only solution found is to use wmctrl and wrap it in a script that will start smerge:

!/bin/bash

smerge .


for i in $(seq 1 20); do
    WIN_ID="$(wmctrl -l  | grep 'Sublime Merge'| cut -d ' ' -f1)"
    if [ -n "$WIN_ID" ]; then
        wmctrl -i -a "$WIN_ID"
        if [ "$i" -eq 1 ]; then
            exit 0
        else
            echo
            exit 0
        fi
    else
        echo -n .
    fi
    sleep 0.2
done
0 Likes

#3

Just to confirm, I do also have this issue with SublimeMerge @ Kubuntu 22.04+22.10… and I am quite sure also before. I have to “open it twice” from ST to come up into front.

Didn’t try the script above.

0 Likes