1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 23:02:42 +02:00

Bug1202: Slider tooltips should not steal focus on Mac.

This commit is contained in:
Paul Licameli 2016-06-22 11:18:48 -04:00
parent b81efbb816
commit 56acdf684c
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ const int sliderFontSize = 12;
// TipPanel
//
class TipPanel final : public wxPopupWindow
class TipPanel final : public wxFrame
{
public:
TipPanel(wxWindow *parent, const wxString & label);
@ -115,7 +115,8 @@ BEGIN_EVENT_TABLE(TipPanel, wxPopupWindow)
END_EVENT_TABLE()
TipPanel::TipPanel(wxWindow *parent, const wxString & maxLabel)
: wxPopupWindow(parent, wxFRAME_SHAPED)
: wxFrame(parent, wxID_ANY, wxString{}, wxDefaultPosition, wxDefaultSize,
wxFRAME_SHAPED | wxFRAME_FLOAT_ON_PARENT)
{
SetBackgroundStyle(wxBG_STYLE_PAINT);
@ -940,7 +941,7 @@ void LWSlider::ShowTip(bool show)
CreatePopWin();
FormatPopWin();
SetPopWinPosition();
mTipPanel->Show();
mTipPanel->ShowWithoutActivating();
}
else
{

View File

@ -229,7 +229,6 @@ class LWSlider
TipPanel *mTipPanel;
wxString mTipTemplate;
wxTimer mTimer;
Ruler* mpRuler;