4 ms·
> In MacOS if you grabbed a window title bar for too long with the mouse then all your sockets would drop. Fun times. I wonder if the people developing windowi
by gioele 12y ago
> In MacOS if you grabbed a window title bar for too long with the mouse then all your sockets would drop. Fun times.
I wonder if the people developing windowing systems with client side decorations (e.g. Wayland + Qt) thought about this issue. Any information about that?
- mattdw 12y agoAs far as I'm aware there's two approaches (often both used at once) in modern GUI systems that mitigate this. One is an explicit event loop, which can be locked up by user code but not normally by routine events, and the other approach is running the UI on its own thread. (Or, to put it another way, applications should perform any long-running operations not on the UI thread.) The second, particularly, would avoid the dropping-sockets problem, as network and drawing would very likely be on separate threads.