sloppyfocus: revert to original setFocus() activation

The port regressed because I replaced the original's pane->setFocus() with
MainWindow::activateView() on a theory that setFocus() didn't move Kate's focus.
The original logic was correct and working; activateView() broke it (and can't
target the pointed pane for a split of the same document). Restore the exact
original activation. The port is now logic-identical to the standalone plugin;
confirmed working in a live split.
This commit is contained in:
Levi Neely 2026-10-09 12:00:56 +02:00
parent fd84f59f14
commit 0c379feb4e
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#define DEFT_SLOPPYFOCUSPLUGIN_H #define DEFT_SLOPPYFOCUSPLUGIN_H
#include <KTextEditor/ConfigPage> #include <KTextEditor/ConfigPage>
#include <KTextEditor/Document>
#include <KTextEditor/MainWindow> #include <KTextEditor/MainWindow>
#include <KTextEditor/Plugin> #include <KTextEditor/Plugin>
#include <KTextEditor/View> #include <KTextEditor/View>