1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Wayland: Implement the xdg-toplevel-icon-v1 protocol

Closes #87747
Requires a compositor which supports xdg-toplevel-icon-v1.
As of this commit only KWin supports this protocol.
This commit is contained in:
ArchercatNEO
2025-06-03 19:41:24 +01:00
parent 9282ed35cb
commit 188b47a29b
7 changed files with 358 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ bool DisplayServerWayland::has_feature(Feature p_feature) const {
case FEATURE_CURSOR_SHAPE:
case FEATURE_CUSTOM_CURSOR_SHAPE:
case FEATURE_WINDOW_TRANSPARENCY:
case FEATURE_ICON:
case FEATURE_HIDPI:
case FEATURE_SWAP_BUFFERS:
case FEATURE_KEEP_SCREEN_ON:
@@ -1810,6 +1811,11 @@ void DisplayServerWayland::swap_buffers() {
#endif
}
void DisplayServerWayland::set_icon(const Ref<Image> &p_icon) {
MutexLock mutex_lock(wayland_thread.mutex);
wayland_thread.set_icon(p_icon);
}
void DisplayServerWayland::set_context(Context p_context) {
MutexLock mutex_lock(wayland_thread.mutex);