wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

drag and drop b/w virtual desktops and alt+tab both dont complete.

Open er-bharat opened this issue 5 months ago • 9 comments

Describe the bug when i pick a item with drag and press alt+tab to drag on another window it drops as soon as i press alt+tab at the cursor position. try to change virtual desktop drops instantly.

To Reproduce Steps to reproduce the behavior:

  1. pick an item from file manager
  2. alt+tab to switch to another window or change virtual desktop
  3. the item drops

Expected behavior item should not drop during switching window or virtual desktop.

Screenshots or stacktrace If applicable, add screenshots to help explain your problem. If it is a crash, attach the backtrace (or the whole log file), Wayfire will print it in the end of the log file or stdout. Backtrace with address sanitizer enabled (if possible):

Wayfire version 0.10.0-071f6e3f (Jul 1 2025) branch master wlroots-0.18.2

er-bharat avatar Jul 10 '25 02:07 er-bharat

it works on compositors like labwc and hyprland sway just fine.

er-bharat avatar Jul 10 '25 02:07 er-bharat

I'm not sure what your issue is, so I'll make an assumption here.

1 - if you are talking about switcher plugin, then you are asking for a feature, it's not a bug.

2 - if you are talking about alt+tab cycling in the next window:

https://github.com/user-attachments/assets/fd1bf2b4-83bb-4988-b568-ad91c1381092

3 - if you want to reproduce the same behavior as cycling next window and mouse cursor on center, you need a custom setup/script to achieve that.

https://github.com/user-attachments/assets/cad68751-ac03-44cb-bc4a-4eddeb5aac0e

https://github.com/user-attachments/assets/65634e6a-3781-46e7-ad14-951a105edf75

killown avatar Jul 10 '25 02:07 killown

try to drop the file in another workspace/virtual desktop ex from virtualdesktop1 to 2. and in same workspace while holding file try to press alt+ tab

er-bharat avatar Jul 10 '25 04:07 er-bharat

if you mean toggle expo, that won't work, the plugin is not designed for that.

But if you mean that:

https://github.com/user-attachments/assets/3e77d964-bcc7-407c-9014-9956501108a7

or try to record what you are trying to do wf-recorder -f 2718.mp4

killown avatar Jul 10 '25 06:07 killown

i found a workaround with using cairo dock move icon to dock and it shows window on any virtual desktop. thanks though.

er-bharat avatar Jul 11 '25 04:07 er-bharat

ah sorry for my mistake i was using vswipe to switch desktop while holding file with mouse, keyboard switching works correctly. sorry again this is not a feature added in vswipe plugin.

in hyprland i can while holding file switch to another virtual desktop with swipe gesture so it was normal for me. that behaviour dont work here thats ok but if it could be added it would be nice.

thanks and sorry again for any inconveniences.

er-bharat avatar Jul 11 '25 05:07 er-bharat

I think for this to work we need to add separate grabs for keyboard, pointer and pointer gestures. All plugins currently grab everything at once, which is why the drag-and-drop action gets cancelled.

For alt-tab for example we'd have to use just a keyboard grab in the fast-switcher plugin (or don't use any plugin at all, add a custom ipc script which only changes the focused view).

For vswipe, we'd have to not grab input at all I guess. If you are compiling wayfire from source, you could try commenting out the input grab lines and see whether it works ;)

ammen99 avatar Jul 11 '25 13:07 ammen99

i rely on aur for installing, i think i dont have enough technical knoledge to compile it from source and + its my only laptop so i have fear of breaking it.

er-bharat avatar Jul 12 '25 01:07 er-bharat

What's the conclusion? The user has a workaround, PR welcome or not planned? Since they lack technical knowledge, modifying the code isn't an option.

killown avatar Jul 13 '25 20:07 killown