zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
35.33k stars 1.79k forks source link

linux: Don't drag window with an active drag #11927

Open apricotbucket28 opened 2 weeks ago

apricotbucket28 commented 2 weeks ago

Prevents dragging the window when there's an active drag.

Release Notes:

phisch commented 1 week ago

@apricotbucket28 this is still a draft, I assume that's by mistake?

apricotbucket28 commented 1 week ago

@apricotbucket28 this is still a draft, I assume that's by mistake?

I marked this as a draft since we should actually change how a window move is started. It shouldn't allow a drag to start outside the title bar (e.g. by selecting text and moving to the title bar, or by trying to drag a non-draggable element and moving the cursor to the title bar area).

I think it'd be better to fix this "the proper way" rather than doing a partial fix :slightly_smiling_face: