Comments (5)
GLFW has a number of platform specific hints already, so a PR for this would likely be acceptable.
from glfw.
i'm aware that currently glfw maintains a global display for all its windows....
given the above, should a PR try to keep the current behavior (so selecting a display can only be done before the first window is created) or maintain a display for each window (which might get tricky if the different displays have different capabilities).
i tend towards the former, but then I think the proper function would be glfwInitHintString()
(which does not exist yet!).
(note that i haven't checked the code recently, so i might have gotten things wrong)
from glfw.
Out of interest can you rework the application to call init after changing the DISPLAY
environment variable?
A change to add per window displays would be pretty large, since the GLFW init uses the display variable to initialize a large number of variables used by all the systems in GLFW. So if a change to add this as an init hint would work for your use case then I think this would be the best way to go.
from glfw.
Out of interest can you rework the application to call init after changing the
DISPLAY
environment variable?
probably.
so do I understand correctly, that a PR should add a new glfwInitHintString()
function (because the existing glfwInitHint()
cannot take strings and is therefore not sufficient)
from glfw.
Yes, a new function glfwInitHintString(int hint, const char* value)
similar to glfwWindowHintString(int hint, const char* value)
looks like the way to do this.
from glfw.
Related Issues (20)
- Documentation doesn't fully specify the expected GLFWreallocatefun behavior
- compile error version 3.4 HOT 1
- wctype.h file not found | required in glfw/src/win32_platform.h
- VkWin32SurfaceCreateInfoKHR not found nor is the function prototype PFN_vkCreateWin32SurfaceKHR
- GLFW_DECORATED set false cause vsync HOT 1
- Drastic decrease in performance when running full screen vs almost full screen
- GLFW Wayland Support HOT 8
- Crash on my computer HOT 3
- Compilation issues with single file builds (Unity Builds) HOT 10
- GLFW window crashes after copying/cutting data to clipboard on Hyprland Wayland compositor HOT 1
- IS this a bug: sharing.c example, should resize of window independent to each other. HOT 5
- Ubuntu can't run glfwGetX11Display is null HOT 3
- Window triggers size callback setting the width and height to 0 when minimized on Windows 11 HOT 5
- Compatibility of glfw with the Apple software render in github CI HOT 8
- Question - Mouse passthrough and transparent window - click changing focus? HOT 4
- Compatibility of linux headless tests within Github CI HOT 1
- windows breakpoint triggered in ntdll.dll HOT 1
- 3.4: issue with generated glfw3.pc file
- feature request: Support FriendlyName External Primary HOT 1
- cmake fetchcontent failing with 3.4 dynamic linking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glfw.