From cd8a9786a80813919186451d94aea175af5ad8be Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Sat, 11 Jan 2025 18:56:51 +0100 Subject: [PATCH] FIX: Fix focus stealing from app when filament changes At every filament related event, the old code would try to set the keyboard focus to the "Device" tab, leading to a number of, either, focus stealing events, or notifications if the desktop has focus stealing prevention (like GNOME). Disable the focus setting on Linux to prevent that focus stealing. Closes: https://github.com/bambulab/BambuStudio/issues/3046 --- src/slic3r/GUI/MainFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index d5c65814b..ebd5c6891 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -1110,10 +1110,10 @@ void MainFrame::init_tabpanel() m_topbar->DisableUndoRedoItems(); } #endif - +#ifndef __WXGTK__ if (panel) panel->SetFocus(); - +#endif /*switch (sel) { case TabPosition::tpHome: show_option(false);