Mimic native focus handling in wxStatusBar on macOS
Improve the logic for determining whether the statusbar should be renderer as for active/key window or a background one. wxTopLevelWindow::IsActive() is not a sufficient test because it returns false in some situations when the statusbar need to appear as active (another floating window) and also didn't account for window-modal sheets (which don't change statusbar appearance either).
This commit is contained in:
committed by
Václav Slavík
parent
e6274c7dfc
commit
5d87c70eba
@@ -40,6 +40,7 @@ CGContextRef WXDLLIMPEXP_CORE wxOSXCreateBitmapContextFromNSImage( WX_NSImage ns
|
||||
|
||||
wxBitmap WXDLLIMPEXP_CORE wxOSXCreateSystemBitmap(const wxString& id, const wxString &client, const wxSize& size);
|
||||
WXWindow WXDLLIMPEXP_CORE wxOSXGetMainWindow();
|
||||
WXWindow WXDLLIMPEXP_CORE wxOSXGetKeyWindow();
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxDialog;
|
||||
|
||||
|
Reference in New Issue
Block a user