Add a Wayland hack to hover previews.

This commit is contained in:
Alex Shvartzkop 2023-11-28 18:48:51 +03:00
parent 87fba5350f
commit 42c9553262
1 changed files with 7 additions and 0 deletions

View File

@ -726,7 +726,14 @@ void LIB_TREE::onIdle( wxIdleEvent& aEvent )
}
if( item != m_previewItem )
{
#ifdef __WXGTK__
// Hide the preview, because Wayland can't move windows.
if( wxGetDisplayInfo().type == wxDisplayType::wxDisplayWayland )
hidePreview();
#endif
showPreview( item );
}
return;
}