Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Windowed Mode Improvements #2354

Open A1steaksa opened 7 months ago

A1steaksa commented 7 months ago

There are currently a couple of things about the game's windowed mode behavior that are annoying.

Hiding the Cursor

Currently, the game hides the OS mouse cursor even while the game is out of focus. It makes it annoying to develop and it doesn't help normal play.

It would be much nicer if the cursor was only hidden while the window's content was in focus.

Capturing the Cursor

Currently, clicking anywhere on the game's window will capture the cursor. This makes moving the game window during development annoying. Often I will alt-tab out of the game without opening the menu so I can see some visual element hot reload in the background. If I need to move the window in this state, I can't reasonably do that.

It would be great if the game only captured the cursor when the content of the window was clicked, rather than any part of it.