mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Bug 1666176 Don't use gfxPlatformGtk in nsWindow::GetSystemCSDSupportLevel, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D90814
This commit is contained in:
parent
ea223460f7
commit
105067831e
1 changed files with 3 additions and 2 deletions
|
|
@ -7741,8 +7741,9 @@ nsWindow::CSDSupportLevel nsWindow::GetSystemCSDSupportLevel(bool aIsPopup) {
|
|||
return sCSDSupportLevel;
|
||||
}
|
||||
|
||||
// We use CSD titlebar mode on Wayland only
|
||||
if (gfxPlatformGtk::GetPlatform()->IsWaylandDisplay()) {
|
||||
// nsWindow::GetSystemCSDSupportLevel can be called from various threads
|
||||
// so we can't use gfxPlatformGtk here.
|
||||
if (!GDK_IS_X11_DISPLAY(gdk_display_get_default())) {
|
||||
sCSDSupportLevel = CSD_SUPPORT_CLIENT;
|
||||
return sCSDSupportLevel;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue