@@ -4232,19 +4232,18 @@ void nsWindow::UpdateThemeGeometries(
4232
4232
return ;
4233
4233
}
4234
4234
4235
- if (StaticPrefs::widget_windows_style_modern ()) {
4236
- mWindowButtonsRect = Nothing ();
4237
- for (size_t i = 0 ; i < aThemeGeometries.Length (); i++) {
4238
- if (aThemeGeometries[i].mType ==
4239
- nsNativeThemeWin::eThemeGeometryTypeWindowButtons) {
4240
- LayoutDeviceIntRect bounds = aThemeGeometries[i].mRect ;
4241
- // Extend the bounds by one pixel to the right, because that's how much
4242
- // the actual window button shape extends past the client area of the
4243
- // window (and overlaps the right window frame).
4244
- bounds.SetWidth (bounds.Width () + 1 );
4245
- if (!mWindowButtonsRect ) {
4246
- mWindowButtonsRect = Some (bounds);
4247
- }
4235
+ mWindowButtonsRect = Nothing ();
4236
+
4237
+ for (size_t i = 0 ; i < aThemeGeometries.Length (); i++) {
4238
+ if (aThemeGeometries[i].mType ==
4239
+ nsNativeThemeWin::eThemeGeometryTypeWindowButtons) {
4240
+ LayoutDeviceIntRect bounds = aThemeGeometries[i].mRect ;
4241
+ // Extend the bounds by one pixel to the right, because that's how much
4242
+ // the actual window button shape extends past the client area of the
4243
+ // window (and overlaps the right window frame).
4244
+ bounds.SetWidth (bounds.Width () + 1 );
4245
+ if (!mWindowButtonsRect ) {
4246
+ mWindowButtonsRect = Some (bounds);
4248
4247
}
4249
4248
}
4250
4249
}
@@ -5119,7 +5118,6 @@ bool nsWindow::ProcessMessageInternal(UINT msg, WPARAM& wParam, LPARAM& lParam,
5119
5118
if (mCustomNonClient && dwmCompositionEnabled &&
5120
5119
/* We don't do this for win10 glass with a custom titlebar,
5121
5120
* in order to avoid the caption buttons breaking. */
5122
- !(StaticPrefs::widget_windows_style_modern () && HasGlass ()) &&
5123
5121
DwmDefWindowProc (mWnd , msg, wParam, lParam, &dwmHitResult)) {
5124
5122
*aRetValue = dwmHitResult;
5125
5123
return true ;
0 commit comments