mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-22 20:45:11 +00:00
Fix wayland icon with SDL_VIDEO_WAYLAND_WMCLASS
This is used by SDL to set the xdg_toplevel app_id
This commit is contained in:
parent
39d40204c3
commit
53ddffeb14
2 changed files with 5 additions and 0 deletions
|
@ -6744,6 +6744,9 @@ bool FurnaceGUI::init() {
|
|||
SDL_SetHint(SDL_HINT_X11_WINDOW_TYPE,"_NET_WM_WINDOW_TYPE_NORMAL");
|
||||
#endif
|
||||
|
||||
// This sets the icon in wayland
|
||||
SDL_setenv("SDL_VIDEO_WAYLAND_WMCLASS", FURNACE_APP_ID, 0);
|
||||
|
||||
// initialize SDL
|
||||
logD("initializing video...");
|
||||
if (SDL_Init(SDL_INIT_VIDEO)!=0) {
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
|
||||
#include "fileDialog.h"
|
||||
|
||||
#define FURNACE_APP_ID "org.tildearrow.furnace"
|
||||
|
||||
#define rightClickable if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) ImGui::SetKeyboardFocusHere(-1);
|
||||
#define ctrlWheeling ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) || ImGui::IsKeyDown(ImGuiKey_RightCtrl)) && wheelY!=0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue