mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
CtrlCore: Wayland issues
This commit is contained in:
parent
f014355a8e
commit
61a952f4d4
2 changed files with 5 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
namespace Upp {
|
||||
|
||||
#define LLOG(x) // DLOG(x)
|
||||
#define LOG_EVENTS _DBG_
|
||||
// #define LOG_EVENTS _DBG_
|
||||
|
||||
BiVector<Ctrl::GEvent> Ctrl::Events;
|
||||
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue