| 35 | } |
| 36 | |
| 37 | std::string getWindowId( GLFWwindow* window ) |
| 38 | { |
| 39 | // https://flatpak.github.io/xdg-desktop-portal/docs/window-identifiers.html |
| 40 | #if GLFW_VERSION_MAJOR > 3 || ( GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 4 ) |
| 41 | switch ( glfwGetPlatform() ) |
| 42 | { |
| 43 | case GLFW_PLATFORM_X11: |
| 44 | return fmt::format( "x11:{:08x}", glfwGetX11Window( window ) ); |
| 45 | // TODO: Wayland support |
| 46 | default: |
| 47 | return ""; |
| 48 | } |
| 49 | #else |
| 50 | return fmt::format( "x11:{:08x}", glfwGetX11Window( window ) ); |
| 51 | #endif |
| 52 | } |
| 53 | |
| 54 | void dbusAppend( DBusMessageIter& iter, std::byte value ) |
| 55 | { |
no outgoing calls
no test coverage detected