mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 886988 - Reset the nsChildView layer manager when we change the transparency mode. r=roc
This commit is contained in:
parent
e903a9846e
commit
83b55a0869
@ -496,7 +496,7 @@ public:
|
||||
NS_IMETHOD StartComplexTextInputForCurrentEvent();
|
||||
|
||||
virtual nsTransparencyMode GetTransparencyMode();
|
||||
virtual void SetTransparencyMode(nsTransparencyMode aMode);
|
||||
virtual void SetTransparencyMode(nsTransparencyMode aMode);
|
||||
|
||||
virtual nsresult SynthesizeNativeKeyEvent(int32_t aNativeKeyboardLayout,
|
||||
int32_t aNativeKeyCode,
|
||||
|
@ -559,7 +559,13 @@ void nsChildView::SetTransparencyMode(nsTransparencyMode aMode)
|
||||
|
||||
nsCocoaWindow* windowWidget = GetXULWindowWidget();
|
||||
if (windowWidget) {
|
||||
nsTransparencyMode old = windowWidget->GetTransparencyMode();
|
||||
windowWidget->SetTransparencyMode(aMode);
|
||||
if (windowWidget->GetTransparencyMode() != old) {
|
||||
// Our layer manager depends on the transparency, so recreate it if the
|
||||
// transparency changes.
|
||||
mLayerManager = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||
|
Loading…
Reference in New Issue
Block a user