wayfire
wayfire copied to clipboard
Incorrect Behavior of Fullscreen Views During Cross-Monitor Drag-and-Drop
Describe the bug Incorrect Behavior of Fullscreen Views During Cross-Monitor Drag-and-Drop
To Reproduce Steps to reproduce the behavior:
- Set a view to fullscreen
- drag from output_1 and drop it anywhere in output_2
Expected behavior The view should fit the entire output after drop
Screenshots or stacktrace
https://github.com/user-attachments/assets/5cde605a-8e26-4e45-b21f-da3d977c8066
Wayfire version 0.5.0, git, package, something else?
cannot reproduce this issue with #2613 maybe related with woobly which is disabled in vulkan renderer
workaround:
from wayfire.ipc import WayfireSocket
sock = WayfireSocket()
sock.watch()
while True:
msg = sock.read_next_event()
if "event" in msg:
if "plugin-activation-state-changed" in msg["event"]:
if msg["plugin"] == "move" and msg["state"] is False:
view = sock.get_focused_view()
if view["fullscreen"] is True:
focused_output = sock.get_focused_output()
width = focused_output["geometry"]["width"]
height = focused_output["geometry"]["height"]
sock.configure_view(view["id"], 0, 0, width, height)