CtrlCore: Wayland issues

This commit is contained in:
Mirek Fidler 2025-02-24 10:49:48 +01:00
parent f014355a8e
commit 61a952f4d4
2 changed files with 5 additions and 2 deletions

View file

@ -9,7 +9,7 @@
namespace Upp {
#define LLOG(x) // DLOG(x)
#define LOG_EVENTS _DBG_
// #define LOG_EVENTS _DBG_
BiVector<Ctrl::GEvent> Ctrl::Events;

View file

@ -259,7 +259,9 @@ Rect Ctrl::GetVirtualScreenArea()
return Rect(0, 0, 1024, 768);
}
#if GTK_CHECK_VERSION(3, 22, 0)
if(IsWayland()) {
if(IsWayland()) { // it is all pointless with Wayland, just return something mostly usable
return SCL(0, 0, 1650, 900);
#if 0
GdkRectangle rr;
auto *pDisplay = gdk_display_get_default();
auto *pMonitor = gdk_display_get_monitor_at_window(pDisplay, pRootWindow);
@ -269,6 +271,7 @@ Rect Ctrl::GetVirtualScreenArea()
}
gdk_monitor_get_geometry(pMonitor, &rr);
return SCL(rr.x, rr.y, rr.width, rr.height);
#endif
}
#endif
if(IsWayland()) {