Bug 1661450 - 6/8 Separate code for X11 and wayland r=stransky

Depends on D139531

Differential Revision: https://phabricator.services.mozilla.com/D139532
This commit is contained in:
ganguin 2022-04-19 08:35:28 +00:00
Родитель 297f530b7c
Коммит 798a827ca4
1 изменённых файлов: 14 добавлений и 3 удалений

Просмотреть файл

@ -49,9 +49,20 @@ GtkCompositorWidget::GtkCompositorWidget(
auto size = mClientSize.Lock();
*size = aInitData.InitialClientSize();
LOG("GtkCompositorWidget::GtkCompositorWidget() [%p] mXWindow %p "
"mIsRenderingSuspended %d\n",
(void*)mWidget.get(), (void*)mXWindow, !!mIsRenderingSuspended);
#if defined(MOZ_X11)
if (GdkIsX11Display()) {
LOG("GtkCompositorWidget::GtkCompositorWidget() [%p] mXWindow %p "
"mIsRenderingSuspended %d\n",
(void*)mWidget.get(), (void*)mXWindow, !!mIsRenderingSuspended);
}
#endif
#if defined(MOZ_WAYLAND)
if (GdkIsWaylandDisplay()) {
LOG("GtkCompositorWidget::GtkCompositorWidget() [%p] mWidget %p "
"mIsRenderingSuspended %d\n",
(void*)mWidget.get(), (void*)mWidget, !!mIsRenderingSuspended);
}
#endif
}
GtkCompositorWidget::~GtkCompositorWidget() {