Ticket #3766 (closed defect: fixed)
add_widget() doesn't remove focus from the previously focused widget
|Reported by:||mooffie||Owned by:||mooffie|
|Branch state:||merged||Votes for changeset:||committed-master|
When adding a new widget to a dialog, at runtime, add_widget() sets WST_FOCUSED on the new widget, but doesn't clear it from the previously focused widget. The result is two (or more) widgets that think they're the focused ones.
Open the editor with some file. [You can use the mouse to carry out the following steps.] Turn off fullscreen for this WEdit and make is smaller. Now open another file in this same dialog (e.g., press C-n for a new file), and for this new WEdit too turn off fullscreen. Make this WEdit smaller so you can see the frames of both WEdits. You'll see that both frames have the color designated for a focused WEdit. Play with the mouse in both frames and you'll see that the problem gets fixed.
The actual function is add_widget_autopos(), and that's how it's written in the commit message. For the ticket I wanted something "easier" in the title.
- Status changed from new to accepted
- Owner set to mooffie
- Branch state changed from no branch to on review
Changed 2 months ago by andrew_b
- Attachment 0001-Ticket-3766-add_widget_autopos-doesn-t-remove-focus-.patch added
comment:12 Changed 7 weeks ago by mooffie
- Status changed from accepted to testing
- Votes for changeset set to committed-master
- Resolution set to fixed
- Branch state changed from approved to merged