python / python/cpython

Tkinter (IDLE) submenu on Wayland stays open if you switch windows

Open
#130,045 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension-modules OS-linux topic-tkinter type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Bug report

Bug description:

The sub menu does not close automatically and when I switch windows with it open it stays on top of whatever window I've opened. The screenshot below shows the behavior.

Image

Occurs in both 3.13 and main branch. Running Fedora 41 GNOME

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in IDLE on Linux with Fedora 41 GNOME and Wayland, switching windows while a Tkinter submenu is open. Trace the IDLE/Tkinter window and menu handling involved; done means the submenu closes or no longer remains above the newly focused window.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.