Describe the bug:
I am getting a message " "Window" lost focus even thought it never had t. And I just see it running the sample, so I decided to file this bug, because it is reproducible.
Expected vs observed behaviour:
The message shouldn't occur
To Reproduce:
Run the arttest sample.
Click Help ->About.
Observe that the console will show the message in question
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I can confirm that this indeed happens under Wayland when opening a dialog from a menu event handler because gs_currentFocus == NULL but we still get a focus-out event for the menu bar.
I don't know why we don't get focus-in for it, but we just don't. If we could find out why we don't get it and fix it, this would fix this problem, but otherwise, i.e. if we can't fix the problem with the missing focus-in, we could still work around this in a few different ways, e.g.
gs_currentFocus is null (and not points to another window) as this is not really a problem.gs_currentFocus to the menu bar before generating the menu event (this would probably be more consistent with wxMSW too).@paulcor Would you have any preferences (or better ideas) here by chance?
In any case, we probably should do something here, as these messages are annoying and will affect more and more people with time.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Somehow I don't see this any more, even though I don't see any changes which could have fixed it neither. Can anybody still reproduce this (the sample mentioned in the issue description is presumably "artprov" and not the non-existing "arttest").
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #22859 as not planned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closing because I can't reproduce it any more, neither with GNOME nor Sway.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Just noting as this does not seem to be entirely solved in wxWidgets 3.2.9.
I am working on an application since two years, and one of my frames which I added about 1.5 years ago has this message from the very beginning:
Debug: window wxCheckBox@0x561abc9482a0 ("Trim values") lost focus even though it didn't have it
It's just a debug level message, so I assume I can safely ignore it. Also, it's only there in the debug build, but not in the release build.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
This message is indeed mostly harmless, but if you can reproduce it reliably in a simple example, I'd still be interested in looking at it and understanding why does it happen. Please create a new issue with the minimal example (or minimal patch to a sample) allowing to see this message if you can provide it. Thanks in advance!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()