wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

View disappears if it is made sticky when it's not on the current workspace

Open dkondor opened this issue 1 month ago • 2 comments

Describe the bug If a view that is not on the current workspace is made sticky, it will stay invisible. I found this when working on #2909 and not entirely sure if it can be reproduced in another way, but probably by using IPC.

To Reproduce Steps to reproduce the behavior:

  1. Place a view on workspace A
  2. Switch to workspace B
  3. Set the view as "sticky"
  4. View does not appear
  5. Switch back to workspace A
  6. View is visible for a moment, but then disappears and cannot be found on any workspace

Expected behavior The view appears on workspace B in step 3 and also stays visible when changing workspaces.

Screenshots or stacktrace

Wayfire version git with #2909

dkondor avatar Nov 25 '25 18:11 dkondor

Currently sticky is a 'low level' label, the plugin which sets that state is responsible for making sure the view is actually visible by adjusting its geometry if needed. I am open to creating a helper in core which does both things, so that plugins don't have to reinvent the wheel every time. The situation is pretty much analogous to tiled edges and fullscreen state, where you can set the tiled edges / fullscreen directly with a transaction, or can make a request on the 'default window manager' which most of the things you'd actually expect it to.

ammen99 avatar Nov 25 '25 18:11 ammen99

I see, thanks! Your proposed solution sounds great, although I don't expect #2909 to be merged anytime soon, so no rush :)

dkondor avatar Nov 25 '25 19:11 dkondor