retext-project/retext

Application doesn't moves to active virtual desktop where another file was opened

Closed this issue · 1 comments

Sorry for the delayed response.

I think there is no standard API for this in Qt. Maybe X11 has some hacks for that but it will not work on Wayland or other platforms anyway.

I am currently using QWidget::raise() which raises the window on top of the stack. On my desktop this results in ReText window being shown in the list of windows in bold (see the screenshot below), and by clicking on that I get switched to the correct desktop. On other desktops like Plasma it may work differently, because the implementation is defined by desktop.

Screenshot

If there is some other method I can use, pointers would be helpful.