Skip to content

Commit

Permalink
steamcompmgr: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkautarch committed Sep 2, 2024
1 parent d4ca0b9 commit e0114be
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7967,33 +7967,7 @@ steamcompmgr_main(int argc, char **argv)
steamcompmgr_exit();
}

void steamcompmgr_send_frame_done_to_focus_window()
{
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);

if ( global_focus.focusWindow && global_focus.focusWindow->xwayland().surface.main_surface )
{
wlserver_lock();
wlserver_send_frame_done( global_focus.focusWindow->xwayland().surface.main_surface , &now );
wlserver_unlock();
}
}

gamescope_xwayland_server_t *steamcompmgr_get_focused_server()
{
if (global_focus.inputFocusWindow != nullptr)
{
gamescope_xwayland_server_t *server = NULL;
for (size_t i = 0; (server = wlserver_get_xwayland_server(i)); i++)
{
if (server->ctx->focus.inputFocusWindow == global_focus.inputFocusWindow)
return server;
}
}

return wlserver_get_xwayland_server(0);
}

struct wlr_surface *steamcompmgr_get_server_input_surface( size_t idx )
{
Expand Down

0 comments on commit e0114be

Please sign in to comment.