Skip to content

Drag and drop freezes server side decorations - #3133

Open
mrsteve0924 wants to merge 1 commit into
WayfireWM:masterfrom
mrsteve0924:DND
Open

mrsteve0924 wants to merge 1 commit into
WayfireWM:masterfrom
mrsteve0924:DND

Conversation

@mrsteve0924

@mrsteve0924 mrsteve0924 commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Dragging a file into another application can leave server-side window
decorations unresponsive. For example, dragging a file into a terminal or
a PDF/image into a web browser can cause the window title bar and
decorations to stop responding to pointer input.

The pointer grab can remain in the DND state after the drag ends, preventing
server-side decorations from receiving pointer input.

Release the pointer grab when the drag is destroyed so pointer focus is
restored.

addresses issue #3131

@mrsteve0924 mrsteve0924 changed the title input: release pointer grab when drag ends Drag and drop freezes server side decorations Sep 23, 2026
@mrsteve0924

mrsteve0924 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

is anyone experiencing this drag and drop bug like i am? seems like a bug that more people would run into than not.

@ammen99

ammen99 commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Check this out: https://github.com/WayfireWM/wayfire/blob/master/src/core/seat/pointer.cpp#L271

The idea is that when we release the mouse button, it should release the grab automatically, no need to call it from the drag done handler as you do in this PR. But it seems we don't include the DnD grab type, which is the actual bug.

Dragging a file into another application can leave server-side window
decorations unresponsive. For example, dragging a file into a terminal or
a PDF/image into a web browser can cause the window title bar and
decorations to stop responding to pointer input.

The pointer grab can remain in the DND state after the drag ends, preventing
server-side decorations from receiving pointer input.

Assisted-by: ChatGPT:GPT-5.6 Sol
Signed-off-by: steve finkel <mrsteve0924@verizon.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants