History

Don't handle mouse click if window wasn't in focus

Olav Sørensen committed 4 years ago

Commit 84697111 parent 2d8950a1 file · +0 −4Browse files

Unified · Split

src/ft2_video.c+0−4
@@ -923,10 +923,6 @@ bool setupWindow(void) · 922 unmodified lines
923 923
924 setWindowSizeFromConfig(false);924 setWindowSizeFromConfig(false);
925 925
926#if SDL_PATCHLEVEL >= 5 // SDL 2.0.5 or later
927 SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1");
928#endif
929
930 SDL_GetDesktopDisplayMode(0, &dm);926 SDL_GetDesktopDisplayMode(0, &dm);
931 video.dMonitorRefreshRate = (double)dm.refresh_rate;927 video.dMonitorRefreshRate = (double)dm.refresh_rate;
932 928

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t