Skip to content

Commit

Permalink
Bug 1654775 [Wayland] Don't flood console with 'Getting screen in way…
Browse files Browse the repository at this point in the history
…land, primary display will be returned', r=jhorak

Differential Revision: https://phabricator.services.mozilla.com/D85257
  • Loading branch information
stransky committed Aug 5, 2020
1 parent 88d698d commit 689fd85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions widget/ScreenManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ void ScreenManager::CopyScreensToAllRemotesIfIsParent() {
NS_IMETHODIMP
ScreenManager::ScreenForRect(int32_t aX, int32_t aY, int32_t aWidth,
int32_t aHeight, nsIScreen** aOutScreen) {
#ifdef MOZ_WAYLAND
#if defined(MOZ_WAYLAND) && defined(MOZ_LOGGING)
static bool inWayland = gdk_display_get_default() &&
!GDK_IS_X11_DISPLAY(gdk_display_get_default());

if (inWayland) {
NS_WARNING("Getting screen in wayland, primary display will be returned.");
MOZ_LOG(sScreenLog, LogLevel::Warning,
("Getting screen in wayland, primary display will be returned."));
}
#endif

Expand Down

0 comments on commit 689fd85

Please sign in to comment.