Different Title Bar in Wayland #107398

Closed
opened 2023-04-27 12:15:15 +02:00 by Ysf · 3 comments

System Information
Operating system: Arch Linux (Updated 12 hours ago), GNOME, Wayland
Graphics card: AMD Radeon RX 6500XT

Blender Version
Broken: 3.5.1
Worked: 3.4

Short description of error
Hello, When I opened Blender it had a different title bar after talking about it on, #blender-coders on blender.chat (https://blender.chat/channel/blender-coders?msg=Tzh3fZCg2HgEdkXZa), I have to use WITH_GHOST_WAYLAND=OFF, and it only happens in Wayland.
Exact steps for others to reproduce the error
Just open Blender 3.5.1 on Wayland

**System Information** Operating system: Arch Linux (Updated 12 hours ago), GNOME, Wayland Graphics card: AMD Radeon RX 6500XT **Blender Version** Broken: 3.5.1 Worked: 3.4 **Short description of error** Hello, When I opened Blender it had a different title bar after talking about it on, #blender-coders on blender.chat (https://blender.chat/channel/blender-coders?msg=Tzh3fZCg2HgEdkXZa), I have to use WITH_GHOST_WAYLAND=OFF, and it only happens in Wayland. **Exact steps for others to reproduce the error** Just open Blender 3.5.1 on Wayland
Ysf added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-04-27 12:15:15 +02:00
Member

Quoting @deadpin from chat:

From https://code.blender.org/2022/10/wayland-support-on-linux/
"Gnome-shell has decided not to support server side decorations, meaning it’s up to each application to define it’s own window frame (title bar & window borders). For developers of tool-kits such as GTK/QT, this makes some sense as they can build window drawing into their toolkit. For a cross-platform applications like as Blender it isn’t so convenient, although longer term we might look into client-side decorations. For now we’re using libdecor and we’ll see how it evolves."

@ideasman42 : that sounds like this should/could be closed, right?

Quoting @deadpin from chat: > From https://code.blender.org/2022/10/wayland-support-on-linux/ "Gnome-shell has decided not to support server side decorations, meaning it’s up to each application to define it’s own window frame (title bar & window borders). For developers of tool-kits such as GTK/QT, this makes some sense as they can build window drawing into their toolkit. For a cross-platform applications like as Blender it isn’t so convenient, although longer term we might look into client-side decorations. For now we’re using libdecor and we’ll see how it evolves." @ideasman42 : that sounds like this should/could be closed, right?
Member

I wonder if this is related though: https://gitlab.gnome.org/jadahl/libdecor/-/merge_requests/43
Looks like it might be possible to fake Gnome-looking decorations now?

I wonder if this is related though: https://gitlab.gnome.org/jadahl/libdecor/-/merge_requests/43 Looks like it might be possible to fake Gnome-looking decorations now?

The current version of libdecor (1.1) doesn't include the GTK theme.
When the next version of libdecor is released it will contain the updated GTK theme (which looks like it uses gnome/GTK native title-bars), however there is currently a library conflict, see:
https://gitlab.freedesktop.org/libdecor/libdecor/-/issues/47

To test, build libdecor (without installing) and from the libdecor checkout run:

bash -c "env LIBDECOR_PLUGIN_DIR=$PWD/build/src/plugins/gtk LD_LIBRARY_PATH=$PWD/build/src blender"

Prints:

Plugin "GTK3 plugin" uses conflicting symbol "png_free".
No plugins found, falling back on no decorations

While the demo works:

 bash -c "env LIBDECOR_PLUGIN_DIR=$PWD/build/src/plugins/gtk LD_LIBRARY_PATH=$PWD/build/src ./build/demo/libdecor-c++-demo"

Closing since this will be supported when libdecor is updated, although the library conflict will need to be resolved too, from what I can see this is an issue for libdecor to handle.

The current version of libdecor (1.1) doesn't include the GTK theme. When the next version of libdecor is released it will contain the updated GTK theme (which looks like it uses gnome/GTK native title-bars), however there is currently a library conflict, see: https://gitlab.freedesktop.org/libdecor/libdecor/-/issues/47 To test, build libdecor (without installing) and from the libdecor checkout run: ``` bash -c "env LIBDECOR_PLUGIN_DIR=$PWD/build/src/plugins/gtk LD_LIBRARY_PATH=$PWD/build/src blender" ``` Prints: ``` Plugin "GTK3 plugin" uses conflicting symbol "png_free". No plugins found, falling back on no decorations ``` While the demo works: ``` bash -c "env LIBDECOR_PLUGIN_DIR=$PWD/build/src/plugins/gtk LD_LIBRARY_PATH=$PWD/build/src ./build/demo/libdecor-c++-demo" ``` Closing since this will be supported when libdecor is updated, although the library conflict will need to be resolved too, from what I can see this is an issue for libdecor to handle.
Blender Bot added
Status
Archived
and removed
Status
Needs Info from Developers
labels 2023-04-28 05:29:14 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#107398
No description provided.