# Cannot move/rearrange panes when running under Wayland

**URL:** <https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377>\
**Category:** Bug graveyard\
**Tags:** upstream-bug, ui-ux, repro, linux, important, panes\
**Created:** [August 26, 2022, 9:34pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377 "2022-08-26T21:34:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![maddi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/maddi/32/45190_2.png) [@maddi](https://forum.obsidian.md/u/maddi)\
**Post date:** [August 26, 2022, 9:34pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/1 "2022-08-26T21:34:41Z")

</div>

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.

Screencast of the issue under Wayland, using the Sandbox Vault with default settings: [http://cdn.maddison.io/PvoT2VFONK--2022-08-26\_14-19-50\_region.mp4](http://cdn.maddison.io/PvoT2VFONK--2022-08-26_14-19-50_region.mp4)

```plaintext
Obsidian: v0.15.9
OS: Arch Linux (Linux 5.18.18-xanmod1-1 GNU/Linux)
WM: Sway v1.7-9 (Wayland 1.21.0-1)
Graphics: AMD RX Vega 56
Electron: v18.3.6-1

```

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 26, 2022, 9:43pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/2 "2022-08-26T21:43:36Z")

</div>

Sorry, you have too much of an niche configuration for us to look into it.  
Try the appimage installer with gnome or kde under wayland.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 29, 2022, 9:11pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/3 "2022-08-29T21:11:51Z")

</div>

Have you tried forcing wayland mode with `--enable-features=UseOzonePlatform --ozone-platform=wayland`

---

<div class="post-metadata">

**Author:** ![phibr0](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/d78d45/32.png) [@phibr0](https://forum.obsidian.md/u/phibr0)\
**Post date:** [August 29, 2022, 9:27pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/4 "2022-08-29T21:27:02Z")

</div>

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.

(Sorry for the strong compression artifacts)  
 ![Kooha-2022-08-29-22-59-38](https://forum.obsidian.md/uploads/default/original/3X/7/1/71dfd12bcfe05214c65ec811b4b7761c9197e558.gif)

---

<div class="post-metadata">

**Author:** ![maddi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/maddi/32/45190_2.png) [@maddi](https://forum.obsidian.md/u/maddi)\
**Post date:** [August 29, 2022, 9:54pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/5 "2022-08-29T21:54:16Z")

</div>

> 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).

---

<div class="post-metadata">

**Author:** ![phibr0](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/p/d78d45/32.png) [@phibr0](https://forum.obsidian.md/u/phibr0)\
**Post date:** [August 29, 2022, 9:58pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/6 "2022-08-29T21:58:52Z")

</div>

Can confirm (I also just noticed that the community maintained flatpak already applies these flags)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 29, 2022, 10:03pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/7 "2022-08-29T22:03:18Z")

</div>

Since there is no platform-specific code on our end, this is either a problem of chrome, electron, or wayland.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 29, 2022, 11:19pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/8 "2022-08-29T23:19:31Z")

</div>

if you feel adventurous, you can tweak the custom arch package to use electron20 or electron21 and see if it helps.

---

<div class="post-metadata">

**Author:** ![maddi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/maddi/32/45190_2.png) [@maddi](https://forum.obsidian.md/u/maddi)\
**Post date:** [August 29, 2022, 11:45pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/9 "2022-08-29T23:45:58Z")

</div>

Tested with electron20 and electron21 alpha, issue exists in both.

---

<div class="post-metadata">

**Author:** ![maddi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/maddi/32/45190_2.png) [@maddi](https://forum.obsidian.md/u/maddi)\
**Post date:** [August 29, 2022, 11:47pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/10 "2022-08-29T23:47:49Z")

</div>

I will step through the code in the JS debugger and see if I can figure anything out.

---

<div class="post-metadata">

**Author:** ![SV337](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/a3d4f5/32.png) [@SV337](https://forum.obsidian.md/u/SV337)\
**Post date:** [November 9, 2022, 5:03pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/11 "2022-11-09T17:03:39Z")

</div>

Hey @maddi, I have the same problem, did you end up finding the solution or at least tracking down where the bug might be?

It’s kinda annoying to have to switch to XWayland every time I need to re-arrange tabs.

---

<div class="post-metadata">

**Author:** ![maddi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/maddi/32/45190_2.png) [@maddi](https://forum.obsidian.md/u/maddi)\
**Post date:** [November 9, 2022, 5:37pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/12 "2022-11-09T17:37:18Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![smidm](https://forum.obsidian.md/user_avatar/forum.obsidian.md/smidm/32/22206_2.png) [@smidm](https://forum.obsidian.md/u/smidm)\
**Post date:** [November 10, 2022, 5:00pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/13 "2022-11-10T17:00:53Z")

</div>

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](https://github.com/microsoft/vscode/issues/156723) (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.

---

<div class="post-metadata">

**Author:** ![maddi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/maddi/32/45190_2.png) [@maddi](https://forum.obsidian.md/u/maddi)\
**Post date:** [November 10, 2022, 7:36pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/14 "2022-11-10T19:36:37Z")

</div>

> [@smidm](#):
>
> The AppImage version works as expected.

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?

---

<div class="post-metadata">

**Author:** ![ameeno](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ameeno/32/43471_2.png) [@ameeno](https://forum.obsidian.md/u/ameeno)\
**Post date:** [February 26, 2023, 10:12am UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/15 "2023-02-26T10:12:29Z")

</div>

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!!!

no fixes yet?

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [February 26, 2023, 11:01pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/16 "2023-02-26T23:01:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![zanodor](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/z/b5e925/32.png) [@zanodor](https://forum.obsidian.md/u/zanodor)\
**Post date:** [February 26, 2023, 11:50pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/17 "2023-02-26T23:50:01Z")

</div>

Why not install .deb?

---

<div class="post-metadata">

**Author:** ![ameeno](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ameeno/32/43471_2.png) [@ameeno](https://forum.obsidian.md/u/ameeno)\
**Post date:** [February 27, 2023, 9:27pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/18 "2023-02-27T21:27:48Z")

</div>

I am using fedora.

---

<div class="post-metadata">

**Author:** ![jstone](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/ee7513/32.png) [@jstone](https://forum.obsidian.md/u/jstone)\
**Post date:** [February 28, 2023, 5:09pm UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/19 "2023-02-28T17:09:09Z")

</div>

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:

```auto
$ ./Obsidian-1.1.15.AppImage \
   --enable-features=UseOzonePlatform,WaylandWindowDecorations \
   --ozone-platform=wayland

```

When launching under Wayland, pane rearrangement doesn’t work regardless of type of window frame style.

A proper fix may not be available until Obsidian rebases against a newer Electron version with Wayland improvements.

---

<div class="post-metadata">

**Author:** ![ameeno](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ameeno/32/43471_2.png) [@ameeno](https://forum.obsidian.md/u/ameeno)\
**Post date:** [March 15, 2023, 10:54am UTC](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377/20 "2023-03-15T10:54:29Z")

</div>

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.

[Next page](https://forum.obsidian.md/t/cannot-move-rearrange-panes-when-running-under-wayland/42377.md?page=2)
