The issue is related to #1783 in the way that it can create another crash. Steps to reproduce: 1. Go to Setup (F2) -> Screens 2. Press Right arrow key on the keyboard to highlight a screen in the list of screens. 3. Press F5 (New) to create a new screen. The new screen item will be in the rename mode. 4. Mouse click another screen item (such as "Main" screen that's present in the default configuration). Do not use the keyboard. 5. Mouse click on "Display options" in the Categories panel on the left. At step 4 you can see the rename mode doesn't end (the selected screen item is in the blue background), and after step 5 htop crashes. Expected result: Mouse click in step 4 ends the rename mode. No crash in step 5. I've used a screen recording tool included in macOS default to record this: https://github.com/user-attachments/assets/ad81d5b1-3019-4d98-b011-1da6ba95247e
The issue is related to #1783 in the way that it can create another crash.
Steps to reproduce:
At step 4 you can see the rename mode doesn't end (the selected screen item is in the blue background), and after step 5 htop crashes.
Expected result: Mouse click in step 4 ends the rename mode. No crash in step 5.
I've used a screen recording tool included in macOS default to record this:
htop-screen-renaming-bug.mov