From 624871486f2fe1f90ed1c19de153ba4b45dd08bb Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 2 Aug 2023 05:19:59 +0200 Subject: [PATCH] source/Platform/Unix/X11Display.cpp: Improve logging. --- source/Platform/Unix/X11Display.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Platform/Unix/X11Display.cpp b/source/Platform/Unix/X11Display.cpp index 1f5144c..8b87b2e 100644 --- a/source/Platform/Unix/X11Display.cpp +++ b/source/Platform/Unix/X11Display.cpp @@ -111,6 +111,8 @@ void* X11Display::getHandle() const void X11Display::setSize(unsigned int width, unsigned int height) { + Log::info("X11: Set size %dx%d", width, height); + // X11 does not like if width or height is zero. if (width == 0) { width = 1; @@ -317,7 +319,7 @@ void X11Display::processEvent(const ::XEvent& event) if (m_size != size) { m_size = size; - Log::info("X11: Resize event"); + Log::info("X11: Resize event %dx%d", m_size.x, m_size.y); onReshape(size.x, size.y); } break;