mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
allow overlay invitations to obscure game input to be able to accept/reject the request
This commit is contained in:
parent
16a241599f
commit
846fd6815e
@ -1,6 +1,7 @@
|
|||||||
* **[detiam]** fix linking errors when build on archlinux
|
* **[detiam]** fix linking errors when build on archlinux
|
||||||
* for windows: updated stub drm patterns and added a workaround for older variants
|
* for windows: updated stub drm patterns and added a workaround for older variants
|
||||||
* added missing example file `disable_lobby_creation.txt` in `steam_settings` folder + updated release `README`
|
* added missing example file `disable_lobby_creation.txt` in `steam_settings` folder + updated release `README`
|
||||||
|
* allow overlay invitations to obscure game input to be able to accept/reject the request
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -933,7 +933,7 @@ void Networking::Run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//PRINT_DEBUG("Networking::Run() %lf\n", time_extra);
|
//PRINT_DEBUG("Networking::Run() %lf\n", time_extra);
|
||||||
PRINT_DEBUG("Networking::Run()\n");
|
// PRINT_DEBUG("Networking::Run()\n");
|
||||||
if (check_timedout(last_broadcast, BROADCAST_INTERVAL)) {
|
if (check_timedout(last_broadcast, BROADCAST_INTERVAL)) {
|
||||||
send_announce_broadcasts();
|
send_announce_broadcasts();
|
||||||
}
|
}
|
||||||
|
@ -717,7 +717,7 @@ void Steam_Matchmaking_Servers::CancelServerQuery( HServerQuery hServerQuery )
|
|||||||
|
|
||||||
void Steam_Matchmaking_Servers::RunCallbacks()
|
void Steam_Matchmaking_Servers::RunCallbacks()
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("Steam_Matchmaking_Servers::RunCallbacks\n");
|
// PRINT_DEBUG("Steam_Matchmaking_Servers::RunCallbacks\n");
|
||||||
|
|
||||||
{
|
{
|
||||||
auto g = std::begin(gameservers);
|
auto g = std::begin(gameservers);
|
||||||
|
@ -638,23 +638,23 @@ bool Steam_Overlay::submit_notification(notification_type type, const std::strin
|
|||||||
notifications.emplace_back(notif);
|
notifications.emplace_back(notif);
|
||||||
allow_renderer_frame_processing(true);
|
allow_renderer_frame_processing(true);
|
||||||
// uncomment this block to obscure cursor input and steal focus for these specific notifications
|
// uncomment this block to obscure cursor input and steal focus for these specific notifications
|
||||||
// switch (type) {
|
switch (type) {
|
||||||
// // we want to steal focus for these ones
|
// we want to steal focus for these ones
|
||||||
// case notification_type_message:
|
case notification_type_invite:
|
||||||
// case notification_type_invite:
|
obscure_game_input(true);
|
||||||
// obscure_game_input(true);
|
break;
|
||||||
// break;
|
|
||||||
|
|
||||||
// // not effective
|
// not effective
|
||||||
// case notification_type_achievement:
|
case notification_type_achievement:
|
||||||
// case notification_type_auto_accept_invite:
|
case notification_type_auto_accept_invite:
|
||||||
// // nothing
|
case notification_type_message:
|
||||||
// break;
|
// nothing
|
||||||
|
break;
|
||||||
|
|
||||||
// default:
|
default:
|
||||||
// PRINT_DEBUG("Steam_Overlay::submit_notification error unhandled type %i\n", (int)type);
|
PRINT_DEBUG("Steam_Overlay::submit_notification error unhandled type %i\n", (int)type);
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1021,23 +1021,23 @@ void Steam_Overlay::build_notifications(int width, int height)
|
|||||||
PRINT_DEBUG("Steam_Overlay::build_notifications removing a notification\n");
|
PRINT_DEBUG("Steam_Overlay::build_notifications removing a notification\n");
|
||||||
allow_renderer_frame_processing(false);
|
allow_renderer_frame_processing(false);
|
||||||
// uncomment this block to restore app input focus
|
// uncomment this block to restore app input focus
|
||||||
// switch (item.type) {
|
switch (item.type) {
|
||||||
// // we want to restore focus for these ones
|
// we want to restore focus for these ones
|
||||||
// case notification_type_message:
|
case notification_type_invite:
|
||||||
// case notification_type_invite:
|
obscure_game_input(false);
|
||||||
// obscure_game_input(false);
|
break;
|
||||||
// break;
|
|
||||||
|
|
||||||
// // not effective
|
// not effective
|
||||||
// case notification_type_achievement:
|
case notification_type_achievement:
|
||||||
// case notification_type_auto_accept_invite:
|
case notification_type_auto_accept_invite:
|
||||||
// // nothing
|
case notification_type_message:
|
||||||
// break;
|
// nothing
|
||||||
|
break;
|
||||||
|
|
||||||
// default:
|
default:
|
||||||
// PRINT_DEBUG("Steam_Overlay::build_notifications error unhandled remove for type %i\n", (int)item.type);
|
PRINT_DEBUG("Steam_Overlay::build_notifications error unhandled remove for type %i\n", (int)item.type);
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user