mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-07 13:48:30 +02:00
daemon: add a ClientCount dbus property
Introduce a new "ClientCount" dbus property that can be queried and also watched to see if gamemode is currently active (or not).
This commit is contained in:
@@ -415,6 +415,8 @@ int game_mode_context_register(GameModeContext *self, pid_t client, pid_t reques
|
||||
/* Apply io priorities */
|
||||
game_mode_apply_ioprio(self, client);
|
||||
|
||||
game_mode_client_count_changed();
|
||||
|
||||
return 0;
|
||||
|
||||
error_cleanup:
|
||||
@@ -498,6 +500,8 @@ int game_mode_context_unregister(GameModeContext *self, pid_t client, pid_t requ
|
||||
game_mode_context_leave(self);
|
||||
}
|
||||
|
||||
game_mode_client_count_changed();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user