aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2022-04-07 13:08:52 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2022-04-07 13:08:52 +1000
commitb443d58497d6d2cfce83c3882ff0cf0ce45914d1 (patch)
tree9ac17f160c9cee962c1852aea8154105b91c10de /src
parent2a5bfddbe88be0410c6b9cead263a6d637183f11 (diff)
downloadscintilla-mirror-b443d58497d6d2cfce83c3882ff0cf0ce45914d1.tar.gz
Bug [#2322] Fix partial updates and non-responsive scroll bars on Xorg.
Also fixes bugs [#2196] and [#2312].
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx7
-rw-r--r--src/Editor.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e7459e477..d5e6a92ff 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1861,7 +1861,7 @@ long Editor::TextWidth(uptr_t style, const char *text) {
// Empty method is overridden on GTK+ to show / hide scrollbars
void Editor::ReconfigureScrollBars() {}
-void Editor::SetScrollBars() {
+void Editor::ChangeScrollBars() {
RefreshStyleData();
const Sci::Line nMax = MaxScrollPos();
@@ -1885,6 +1885,11 @@ void Editor::SetScrollBars() {
//Platform::DebugPrintf("end max = %d page = %d\n", nMax, nPage);
}
+void Editor::SetScrollBars() {
+ // Overridden on GTK to defer to idle
+ ChangeScrollBars();
+}
+
void Editor::ChangeSize() {
DropGraphics();
SetScrollBars();
diff --git a/src/Editor.h b/src/Editor.h
index a430a23d4..095131c76 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -413,7 +413,8 @@ protected: // ScintillaBase subclass needs access to much of Editor
virtual void SetHorizontalScrollPos() = 0;
virtual bool ModifyScrollBars(Sci::Line nMax, Sci::Line nPage) = 0;
virtual void ReconfigureScrollBars();
- void SetScrollBars();
+ void ChangeScrollBars();
+ virtual void SetScrollBars();
void ChangeSize();
void FilterSelections();