sfx2/source/dialog/backingwindow.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit a091ae213eb8d64c21361969775b76e7911cc1af
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Sep 30 09:17:01 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Sep 30 12:24:35 2022 +0200

    tdf#143673 set an explicit drawing area bg
    
    noticed in gtk darkmode on switching from initial application
    to start center
    
    Change-Id: I1cffab97ecd69ca6043531a6b2b5fc34b1ca84f1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140789
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sfx2/source/dialog/backingwindow.cxx 
b/sfx2/source/dialog/backingwindow.cxx
index a21300947a20..e34e02ec2d40 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -74,6 +74,11 @@ public:
     virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override
     {
         weld::CustomWidgetController::SetDrawingArea(pDrawingArea);
+
+        const StyleSettings& rStyleSettings = 
Application::GetSettings().GetStyleSettings();
+        OutputDevice& rDevice = pDrawingArea->get_ref_device();
+        rDevice.SetBackground(Wallpaper(rStyleSettings.GetWindowColor()));
+
         SetPointer(PointerStyle::RefHand);
     }
 

Reply via email to