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

            Bug ID: 447538
           Summary: On Wayland, Kate doesn't prefer opening files in an
                    instance on the current virtual desktop
           Product: kate
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: a.samir...@gmail.com
  Target Milestone: ---

Basically the code uses KWindowSystem::currentDesktop()[1] to check which
virtual desktop you're on, and if there is a Kate instance running there
already open the file in it, and if there isn't it starts a new instance then
open the file with it.

The issue is that on Wayland currentDesktop() always returns 0, so the logic
doesn't work, opening a file with Kate could end up opening that file on an
instance that's already running on a different virtual desktop.

[1]https://invent.kde.org/utilities/kate/-/blob/master/kate/main.cpp#L407

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

Reply via email to