You've already forked godot
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user