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

            Bug ID: 503046
           Summary: No way to raise a Tk root window to the front of the
                    window stack (methods that work on other WMs / OSes
                    fail on KDE Plasma)
    Classification: Plasma
           Product: kwin
           Version: 6.1.5
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: core
          Assignee: kwin-bugs-n...@kde.org
          Reporter: aje.ba...@gmail.com
  Target Milestone: ---

SUMMARY
When working with Tkinter root objects, the Tk.lift() method doesn't work. I'm
trying to implement a method for re-raising a Tkinter window back to the top of
the stack after it has been covered by another window in accordance with the
guidance here:
https://stackoverflow.com/questions/1892339/how-to-make-a-tkinter-window-jump-to-the-front
However calling root.lift() doesn't have an effect on KDE Plasma 6, and calling
root.attributes('-topmost', True); sleep(1) ; root.attributes('-topmost',
False) does raise the window to the front, but then it vanishes again
presumably to wherever it was previously in the stack.

STEPS TO REPRODUCE
See the minimal example here:
https://stackoverflow.com/questions/79404917/raise-a-window-using-tkinter-on-kde
(This isn't mine but the problem is the same.)

OBSERVED RESULT
Tkinter window does not raise to the front when lift() is called, and when the
topmost attribute is removed it vanishes from the front of the stack.

EXPECTED RESULT
lift() should raise the window to the front of the stack and leave it there, as
is the case with other WMs and OSes.

Not sure about the intended behaviour of removing the topmost attribute, but
with lift() not working then leaving the window at the front of the stack when
topmost is removed would at least provide a way of raising a window to the
front of the stack.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:Kubuntu 24.10
KDE Plasma Version: 6.1.5-0ubuntu1
KDE Frameworks Version: 5.116.0-0ubuntu3
Qt Version: 6.6.2

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

Reply via email to