]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
vid: add cvar vid_minimize_on_focus_loss
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 30 Oct 2023 01:15:36 +0000 (11:15 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Wed, 8 Nov 2023 17:27:00 +0000 (03:27 +1000)
commit83c1da9c25329f63b7667bbce062692ef7c75668
tree27cf5752018059cf5692b6b6dd4b42fc94a21035
parent3234ca5c2c700a2568f099caa3df6d4b4ee23ba8
vid: add cvar vid_minimize_on_focus_loss

Default of 0 matches current SDL default behaviour.

If set, the environment variable SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS will
override the cvar.

Changes apply immediately.

Also makes changes to vid_mouse_clickthrough apply immediately.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
vid.h
vid_sdl.c
vid_shared.c