Skip to content

Commit

Permalink
Merge pull request #1559 from SrS2225a/wayland_icon
Browse files Browse the repository at this point in the history
added window icon support for wayland
  • Loading branch information
AlexandreRouma authored Feb 2, 2025
2 parents 0e77a9f + 395186f commit e0f9053
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/backends/glfw/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ namespace backend {
glfwWindowHint(GLFW_CLIENT_API, OPENGL_VERSIONS_IS_ES[i] ? GLFW_OPENGL_ES_API : GLFW_OPENGL_API);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, OPENGL_VERSIONS_MAJOR[i]);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, OPENGL_VERSIONS_MINOR[i]);

#if GLFW_VERSION_MAJOR > 3 || (GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 4)
glfwWindowHintString(GLFW_WAYLAND_APP_ID, "sdrpp");
#endif

// Create window with graphics context
monitor = glfwGetPrimaryMonitor();
window = glfwCreateWindow(winWidth, winHeight, "SDR++ v" VERSION_STR " (Built at " __TIME__ ", " __DATE__ ")", NULL, NULL);
Expand Down

0 comments on commit e0f9053

Please # to comment.