3.2.5 regression on macOS: wxListCtrl and wxTreeCtrl no longer get focused on mouse click (Issue #24667)

35 views
Skip to first unread message

Tim Kosse

unread,
Jul 2, 2024, 8:04:12 AM (3 days ago) Jul 2
to wx-...@googlegroups.com, Subscribed

Description

This is a new regression in wxWidgets 3.2.5 on macOS, this functionality worked correctly in wxWidgets 3.2.4

When left-clicking wxListCtrl or wxTreeCtrl, the control no longer takes focus. Clicking an item in these controls selects said item, but the control itself stays unfocused:

  • The background color of the selected items stays grey
  • Changing the selected item with the cursor keys on the keyboard is then not possible
  • Slowly clicking an item twice no longer starts the label editing

This can be reproduced in the listctrl and treectrl samples: Start the sample, click an item in the list/tree and then try to use the cursor keys to change the selected item. In 3.2.5, it does not work, in 3.2.4 the selection changes as expected.

It is however still possible to give the control focus by navigating to it using the Tab key.

Platform and version information

  • wxWidgets version you use: 3.2.5
  • wxWidgets port you use: wxOSX
  • OS and its version: macOS 14.5 (23F79) on Apple M2
  • Compiler: Apple clang version 15.0.0 (clang-1500.3.9.4) from XCode 15.4 (15F31d)


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24667@github.com>

VZ

unread,
Jul 3, 2024, 5:27:33 PM (2 days ago) Jul 3
to wx-...@googlegroups.com, Subscribed

Thanks for reporting this. Unfortunately I don't see any smoking gun, git log v3.2.4..v3.2.5 src/osx shows just a few commits none of which seem to be obviously related. If you can run git-bisect to find the commit which actually broke this, it would be great.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24667/2207338274@github.com>

Tim Kosse

unread,
Jul 4, 2024, 5:33:54 AM (yesterday) Jul 4
to wx-...@googlegroups.com, Subscribed

It's this commit: abab8b4

If I reverse it, the focus on left-click is back to normal.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24667/2208533969@github.com>

Tim Kosse

unread,
Jul 4, 2024, 6:26:24 AM (yesterday) Jul 4
to wx-...@googlegroups.com, Subscribed

Upon further testing, reversing that commit only fixes it for the listctrl sample, it does nothing for the treectrl sample.

Furthermore, even in the listctrl sample, there is still a small 20x20 in the top left of the list that upon click doesn't give the control focus.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24667/2208637599@github.com>

Tim Kosse

unread,
Jul 4, 2024, 6:39:19 AM (yesterday) Jul 4
to wx-...@googlegroups.com, Subscribed

Reverting both abab8b4 and b8744be makes both the listctrl and treectrl samples work correctly again.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24667/2208658990@github.com>

VZ

unread,
Jul 4, 2024, 7:48:55 PM (14 hours ago) Jul 4
to wx-...@googlegroups.com, Subscribed

Thanks for debugging this! Unfortunately I have absolutely no time to look at it now and I am not sure if I have the expertise to solve this even if I had.

@csomor Any ideas?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24667/2209646440@github.com>

Stefan Csomor

unread,
6:09 AM (3 hours ago) 6:09 AM
to wx-...@googlegroups.com, Subscribed

ok, happens only under macOS 14+, related to our use of the clippingView, also present on master, I'll look into it


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24667/2210597044@github.com>

Reply all
Reply to author
Forward
0 new messages