When running Obsidian natively under Wayland, it’s impossible to move panes or sidebar tabs.
Dragging them appears like it’s going to work by showing you where the new pane location will be, but when you release the mouse button the pane just stays in place.
Resizing and opening new panes works as expected.
The issue does not occur when running under XWayland. The only way that I can re-arrange my sidebar panes is to quit Obsidian, launch it under XWayland, move the panes to where I want them, and re-launch Obsidian back under Wayland.
I prefer to run under Wayland as performance is better and the UI looks crisper.
Fedora Linux (36) on Gnome (42.4) with Wayland. Tested Obsidian Flatpak and AppImage, including with the provided flags.
Debug Info
SYSTEM INFO:
Obsidian version: v0.16.0
Installer version: v0.15.9
Operating system: #1 SMP PREEMPT_DYNAMIC Sun Aug 21 15:52:59 UTC 2022 5.18.19-200.fc36.x86_64
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
With Obsidian pre 0.16.0 dragging worked fine inside a window. Meaning, one could drag panes to create splits. Dragging outside the window to create pop out windows didn’t work.
With Obsidian 0.16.0 dragging panes around doesn’t work at all.
Weird thing is, that dragging inside the file explorer to move files does work, and dragging them inside an editor (to create links) or into the header to open them did and does still work fine.
Have you tried forcing wayland mode with --enable-features=UseOzonePlatform --ozone-platform=wayland
Yes, that’s how I normally run Obsidian. The bug occurs when these flags are used, the bug does not occur without them (without the flags, XWayland is used).
@SV337 This is still a problem for me. I never did come up with a workaround, other than to switch to xwayland as you mentioned.
From debugging the code, it seems to be an issue with the event handlers. Specifically, it seems like the drop event isn’t being fired. But take that with a grain of salt, because it’s difficult to follow the event handling control flow using the minified code.
I’ve got the same problem on Fedora 36, Wayland, Gnome and Flatpak distribution of Obsidian. The AppImage version works as expected.
There is a possible related bug in VSCode (or Electron). They mention that enabling the native title bar solves the issue. I tried to change the title bar in Obsidian (Options → Appearance → Window frame style) to native, but the title bar stays hidden.
That is very interesting, and the best lead so far. Do you know what is different about the AppImage as opposed to the regular package or Flatpak? Is it using a different version of Electron?
Bumping this thread, as i have just run into this issue using flatpak version of obsidian on Fedora 37 KDE/Wayland, when trying to get setup (using a youtube guide) - in 26th February 2023.
It is really difficult when something suddenly does not work as i’m trying to follow along with a setup tutorial. Honestly, I dont really want to use the app image version, I just wish the flatpak would work, any ideas how to fix it?
I downloaded the App image and tested it, and can confirm the app image version works fine, but flatpak is broken!!!
We don’t provide support for flatpak and arch packages because we don’t make them. That being said, this is likely a wayland or electron under wayland issue and we’ll wait for the upstream fix.
How’re you running Obsidian? As far as I can tell, this issue occurs in both the appimage and flatpak when I try it. It seems to have more to do with whether Obsidian is launching under XWayland or Wayland:
Hi jstone, you are right, I had a flatseal Environment variable for Obsidian set to enable Native wayland by having it set to
OBSIDIAN_USE_WAYLAND=1
Before hand, but once i changed it to:
OBSIDIAN_USE_WAYLAND=0
It started working. This is weird because wanting to use wayland on my system meant it should be all smoother and faster, but unfortunately it broke the obsidian app.