Skip to content
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

Bug on trying to change display settings to windowed fullscreen #5228

Closed
firasmestiri opened this issue Mar 22, 2024 · 6 comments · Fixed by #5243
Closed

Bug on trying to change display settings to windowed fullscreen #5228

firasmestiri opened this issue Mar 22, 2024 · 6 comments · Fixed by #5243
Labels
Status: Needs Investigation Requires to be debugged or checked for feasibility, etc. Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness Type: Bug Issues reporting and PRs fixing problems

Comments

@firasmestiri
Copy link

General Info

Terasology Launcher Version: 4.8.0
Terasology Version: 5.3.0
Operating System: Windows 10 x64
Onboard / Dedicated Graphics: Nvidia gtx 1650ti
Java Version: Version 8 361

What you were trying to do

I was attempting to change the display settings to windowed fullscreen to be able to easily switch windows etc..

What actually happened

The screen was still showing the taskbar

How to reproduce

  1. Select Terasology version '5.3.0'
  2. Start Terasology
  3. Go to settings then video settings
  4. Change the display mode to windowed fullscreen

Log details

No crash

Screenshots

here's a link to a video recording showing the process

https://drive.google.com/file/d/1-eZ1HBAPBV6kSBvPoEG-LBjZGtJhWacp/view?usp=sharing

@firasmestiri firasmestiri added Status: Needs Investigation Requires to be debugged or checked for feasibility, etc. Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness Type: Bug Issues reporting and PRs fixing problems labels Mar 22, 2024
@BenjaminAmos
Copy link
Contributor

I can reproduce this. The game window appears to be rendering underneath the taskbar, rather than on-top of it.

It might be worth investigating if this is related to LWJGL/GLFW:

case WINDOWED_FULLSCREEN:
GLFWVidMode vidMode = desktopResolution.get();
GLFW.glfwSetWindowMonitor(window,
MemoryUtil.NULL,
0,
0,
vidMode.width(),
vidMode.height(),
GLFW.GLFW_DONT_CARE);
GLFW.glfwSetWindowAttrib(window, GLFW.GLFW_DECORATED, GLFW.GLFW_FALSE);
config.setDisplayModeSetting(displayModeSetting);
config.setWindowedFullscreen(true);

@soloturn
Copy link
Contributor

soloturn commented Mar 23, 2024

@BenjaminAmos reproduce with development version as well? in any case it would be really cool to release a new version, now new java version is stable. there is an ancient stackoverflow entry which looks kind of related:
https://stackoverflow.com/questions/6790600/java-gui-hides-windows-taskbar

@BenjaminAmos
Copy link
Contributor

I always try to reproduce issues with the latest development source where I can. This issue was still reproducable as of 1b48033.

As for a new release, I would like to resolve some of the more severe issues with #5150 first, which I an currently working through.

@Khaled-Dridi
Copy link
Contributor

I can reproduce this. The game window appears to be rendering underneath the taskbar, rather than on-top of it.

It might be worth investigating if this is related to LWJGL/GLFW:

case WINDOWED_FULLSCREEN:
GLFWVidMode vidMode = desktopResolution.get();
GLFW.glfwSetWindowMonitor(window,
MemoryUtil.NULL,
0,
0,
vidMode.width(),
vidMode.height(),
GLFW.GLFW_DONT_CARE);
GLFW.glfwSetWindowAttrib(window, GLFW.GLFW_DECORATED, GLFW.GLFW_FALSE);
config.setDisplayModeSetting(displayModeSetting);
config.setWindowedFullscreen(true);

hi i reproduced it and i found out that when you go from full screen to windowed full screen the task bar is hidden but when i go from windowed to windowed full screen the task bar will appear

@Khaled-Dridi
Copy link
Contributor

I can reproduce this. The game window appears to be rendering underneath the taskbar, rather than on-top of it.
It might be worth investigating if this is related to LWJGL/GLFW:

case WINDOWED_FULLSCREEN:
GLFWVidMode vidMode = desktopResolution.get();
GLFW.glfwSetWindowMonitor(window,
MemoryUtil.NULL,
0,
0,
vidMode.width(),
vidMode.height(),
GLFW.GLFW_DONT_CARE);
GLFW.glfwSetWindowAttrib(window, GLFW.GLFW_DECORATED, GLFW.GLFW_FALSE);
config.setDisplayModeSetting(displayModeSetting);
config.setWindowedFullscreen(true);

hi i reproduced it and i found out that when you go from full screen to windowed full screen the task bar is hidden but when i go from windowed to windowed full screen the task bar will appear

i have a video proof of it

0407.1.mp4

@Khaled-Dridi
Copy link
Contributor

I can reproduce this. The game window appears to be rendering underneath the taskbar, rather than on-top of it.

It might be worth investigating if this is related to LWJGL/GLFW:

case WINDOWED_FULLSCREEN:
GLFWVidMode vidMode = desktopResolution.get();
GLFW.glfwSetWindowMonitor(window,
MemoryUtil.NULL,
0,
0,
vidMode.width(),
vidMode.height(),
GLFW.GLFW_DONT_CARE);
GLFW.glfwSetWindowAttrib(window, GLFW.GLFW_DECORATED, GLFW.GLFW_FALSE);
config.setDisplayModeSetting(displayModeSetting);
config.setWindowedFullscreen(true);

yes it was because of this code in engine/src/main/java/org/terasology/engine/core/subsystem/lwjgl/LwjglDisplayDevice.java
GLFW.glfwSetWindowMonitor(window, MemoryUtil.NULL, 0, 0, vidMode.width(), vidMode.height(), GLFW.GLFW_DONT_CARE);
i made it run twice and it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Investigation Requires to be debugged or checked for feasibility, etc. Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness Type: Bug Issues reporting and PRs fixing problems
Projects
Status: Done
Status: No status
4 participants