-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fullScreen() does not work for second display with P2D/P3D in certain screen alignments #471
Comments
Created by: sampottinger @benfry this is working for me on macOS 11.6 Intel on current master (which includes #474).
and
I do get a resize message from window manager ( LMK how you want to proceed. |
Created by: benfry Ok, we'll close it as resolved with #474 for 4.0 beta 8. And I'll suppress that message when using |
Created by: HectorCarral I'm afraid that I'm still having the same exact issue on 4.0 beta 8 (both Intel and M1 versions). The behavior is exactly the same as described in the original issue, except that now there's no message about the resizing of the sketch. Both programs above by @sampottinger result in the sketch running fullscreen on the same screen (the main one, never the secondary one). I have tried different things, such as changing the default screen on preferences, deleting preferences.txt, restarting my computer, etc., but same thing. |
Created by: benfry Nuts… If you remove the display number from the |
Created by: sampottinger Dang :( - I noticed that our Mac OS versions were different. Let me upgrade (😬) mine and see if it persists. |
Created by: HectorCarral
@benfry I just tried this again with 4.0b8 and, with no display number specified in |
Created by: benfry Hm, I wonder if we actually have a macOS issue with JOGL not correctly using the other display, not just a preprocessor issue. I don't suppose the native Apple Silicon version of beta 8 helps, does it? https://github.com/processing/processing4/releases/download/processing-1283-4.0b8/processing-4.0b8-macos-aarch64.zip |
Created by: benfry Just tested on an Intel machine running Big Sur (11.6.5) and an M1 machine running Monterey (latest) and both are working fine with two displays and the example that @sampottinger posted. Make sure the second display is plugged in before you start Processing, and give it another shot, in particular with the Apple Silicon version of beta 8. |
Created by: HectorCarral @benfry No, it behaves the same for me using that native Apple Silicon version, beta 8. I just tried everything again using it (with a fresh download) and got the same issue. If I specify P3D ( Very strange that it is working fine for you but not me, with what would seem to be the same OS, processor, Processing version and code. I can't think of anything in my setup that is out of the ordinary. I have indeed tried plugging the display before starting Processing, as well as restarting my machine with the display already connected, etc., but same thing. Not sure what else to try at this point. Also:
|
Created by: benfry Ok, unfortunately that's an upstream problem in the JOGL library, so we'll have to wait for a fix (if any). You might try reporting it there in case it's not been reported yet, or someone has a fix. In the meantime it sounds like you'll need to tweak the layout of the displays in the panel. |
Created by: github-actions[bot] This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs. |
Created by: HectorCarral
Description
Using
fullScreen()
with P2D or P3D fails to run the sketch on a secondary screen, despite specifying the display number and also regardless of the Processing settings. It always runs on the main screen.Expected Behavior
The sketch is run fullscreen on the specified screen, regardless of the renderer used.
Current Behavior
The sketch always runs fullscreen on the main screen if P2D or P3D is specified.
For example, using a laptop with a secondary screen connected,
fullScreen(1)
correctly runs the sketch fullscreen on screen 1 (main one) whilefullScreen(2)
correctly runs the sketch fullscreen on screen 2 (secondary one). However, when specifying another renderer (fullScreen(P2D, 2)
orfullScreen(P3D, 2)
), the sketch runs on screen 1 (main one) while the following message is presented:The sketch has been resized from 100✕100 to 1920✕1080 by the window manager.
(where 1920✕1080 is indeed the correct resolution of screen 2, different from the resolution of screen 1). This is independently of the setting of default screen specified on the Processing IDE settings. The workaround to run the sketch fullscreen on the external screen is to go into the OS settings and set that as the main screen. Please note that this is on macOS, and I have been unable to test it on other operating systems.Steps to Reproduce
fullScreen()
while specifying P2D/P3D and the number of the secondary screen:Your Environment
The text was updated successfully, but these errors were encountered: