So I'm getting some strange results from the Fl::screen* functions with 1.4.0 in my code versus 1.3.5 (which is what my Gentoo system currently packages). I created a simple test case to show the differences.
In 1.3.5, my testcase outputs the following using the Fl::screen_count() and Fl::screen_work_area() methods:
GCC Version: 11.3.0
FLTK Version: 1.3.5
Known monitors: 3
Monitor 1: 3840x2160 (7680,0)
Monitor 2: 3840x2160 (0,0)
Monitor 3: 3840x2160 (3840,0) [Primary Screen]
Workspace: 11520x2160
This exactly matches my current configuration, which is three 4K monitors with the middle monitor (Monitor 3) being the primary screen. The WM is KDE/Plasma on Xorg.
Running exactly the same testcase on 1.4.0, I get:
GCC Version: 11.3.0
FLTK Version: 1.4.0
Known monitors: 1
Monitor 1: 11520x2106 (0,0) [Primary Screen]
Workspace: 11520x2106
The monitor count is wrong and the height is off by 54 pixels.
Strangely enough, I occasionally get other weird results in 1.4.0, like:
Known monitors: 3
Monitor 1: 2560x1440 (5120,0)
Monitor 2: 2560x1440 (0,0)
Monitor 3: 2560x1440 (2560,0) [Primary Screen]
Workspace: 7680x1440
where the monitor count is correct but the resolutions are off.
Am I doing something wrong, or is something wonky with the 1.4.0 screen routines? I've attached the simple testcase that generates these results. Thanks for any insights!
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/97bb523b-1df1-4bec-8fd0-5af9a4505504n%40googlegroups.com.
[ Direct Link to Message ] |