aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
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/Editor.cxx
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/Editor.cxx')
-rw-r--r--src/Editor.cxx7
1 files changed, 6 insertions, 1 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();