Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion desktop-ui/input/hotkeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ auto InputManager::pollHotkeys() -> void {
if(Application::modal()) return;

if(!driverSettings.inputDefocusAllow.checked()) {
if (!presentation.focused() && !ruby::video.fullScreen()) return;
if (!presentation.focused()) return;
}

for(auto& hotkey : hotkeys) {
Expand Down
2 changes: 1 addition & 1 deletion desktop-ui/program/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ auto Program::audio(ares::Node::Audio::Stream node) -> void {

auto Program::input(ares::Node::Input::Input node) -> void {
if(!driverSettings.inputDefocusAllow.checked()) {
if(!ruby::video.fullScreen() && !presentation.focused()) {
if(!presentation.focused()) {
//treat the input as not being active
if(auto button = node->cast<ares::Node::Input::Button>()) button->setValue(0);
if(auto axis = node->cast<ares::Node::Input::Axis>()) axis->setValue(0);
Expand Down
2 changes: 1 addition & 1 deletion desktop-ui/program/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ auto Program::main() -> void {
inputManager.poll();
inputManager.pollHotkeys();

bool defocused = driverSettings.inputDefocusPause.checked() && !ruby::video.fullScreen() && !presentation.focused();
bool defocused = driverSettings.inputDefocusPause.checked() && !presentation.focused();
if(emulator && defocused) message.text = "Paused";

if(settings.debugServer.enabled) {
Expand Down
4 changes: 2 additions & 2 deletions ruby/video/direct3d9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ struct VideoDirect3D9 : VideoDriver {
}

if(self.fullScreen) {
_context = _window = CreateWindowEx(WS_EX_TOPMOST, L"VideoDirect3D9_Window", L"", WS_VISIBLE | WS_POPUP,
_context = _window = CreateWindowEx(WS_EX_NOACTIVATE, L"VideoDirect3D9_Window", L"", WS_VISIBLE | WS_POPUP | WS_DISABLED,
_monitorX, _monitorY, _monitorWidth, _monitorHeight,
nullptr, nullptr, GetModuleHandle(0), nullptr);
(HWND)self.context, nullptr, GetModuleHandle(0), nullptr);
} else {
_context = (HWND)self.context;
}
Expand Down
4 changes: 2 additions & 2 deletions ruby/video/gdi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ struct VideoGDI : VideoDriver {
_monitorHeight = monitor.height;

if(self.fullScreen) {
_context = _window = CreateWindowEx(WS_EX_TOPMOST, L"VideoGDI_Window", L"", WS_VISIBLE | WS_POPUP,
_context = _window = CreateWindowEx(WS_EX_NOACTIVATE, L"VideoGDI_Window", L"", WS_VISIBLE | WS_POPUP | WS_DISABLED,
_monitorX, _monitorY, _monitorWidth, _monitorHeight,
nullptr, nullptr, GetModuleHandle(0), nullptr);
(HWND)self.context, nullptr, GetModuleHandle(0), nullptr);
} else {
_context = (HWND)self.context;
}
Expand Down
4 changes: 2 additions & 2 deletions ruby/video/wgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ struct VideoWGL : VideoDriver, OpenGL {
_monitorHeight = monitor.height;

if(self.fullScreen) {
_context = _window = CreateWindowEx(WS_EX_TOPMOST, L"VideoOpenGL32_Window", L"", WS_VISIBLE | WS_POPUP,
_context = _window = CreateWindowEx(WS_EX_NOACTIVATE, L"VideoOpenGL32_Window", L"", WS_VISIBLE | WS_POPUP | WS_DISABLED,
_monitorX, _monitorY, _monitorWidth, _monitorHeight,
nullptr, nullptr, GetModuleHandle(0), nullptr);
(HWND)self.context, nullptr, GetModuleHandle(0), nullptr);
} else {
_context = (HWND)self.context;
}
Expand Down