hyprland-virtual-desktops: virtual desktops sometimes completly broken

I don’t know what exactly causes it, but sometimes the virtual desktops become completly broken… The only way to remedy this I found is to restart Hyprland and to hope to not trigger it again.

Based on the workspace indicators on my waybar, I can tell, that this happens whenever both workspaces representing a single desk (e.g. workspaces 1,2 for desk 1) are somehow one the same monitor (according to waybar). Then I get very glitchy behavior. I get unrendered some unrendered windows. Also just the act of moving the mouse from one monitor to the other makes the workspaces somehow swap between monitors and I can’t get to the other workspace anymore… It’s very weird.

Running hyprctl reload or hyprctl dispatch vdeskreset cannot fix this.

One thing that might play a role is, the fact, that when starting hyprland I first deactivate the internal monitor (monitor 3 if you want so).

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

hey, just curious. Is this still happening? I feel like on aquamarine this stuff kind of fixed itsef (?)

Hi, I’ve had this issue for some time now on hyprland-git (currently 0.44.0.r63.08cc063e-1).

I can’t really reproduce it but it happens to me almost every time I want to move a window from say vdesk 1 to vdesk 2 after on vdesk 1 all three monitors were populated with a window.

On vdesk 2 the window in some kind of background layer and I can open other windows on top of it. Sometimes new windows created on vdesk 2 then are buggy and take space but get invisible.

In most of the cases I’m able to “fix” this issue by going to vdesk 3 and populating every monitor with a window and then switching back to vdesk 2. If this does not work I repeat the same process with vdesk 4 etc.

I’ve suspected hyprland to cause this bug for quite some time now but I’m getting the feeling it’s this plugin which causes this behavior. I’ve not yet had the time to dig through the source to find possible reasons for this behavior but I’ll have a look in the next weeks and let you know if I find something

I don’t use this plugin anymore, since it wasn’t working for me at the time.

Hmm, come to think of it I generally keep my monitors on at all times. I will test when I have access to them.

It’s remarkable that your first plugin is so good considering the complex nature of the situation. I’m repeating myself but virtual desktops kept me on Plasma until now so I’m very grateful for this project.

That’s good to know! Unfortunately, I think this problem (vdesks going crazy etc) is still present, despite rather unpredictable. One day I’ll look into it. Most likely, it will require changes in Hyprland itself to send an event before/after workspaces have been “adjusted”, following a monitor connection/disconnection