WindowState.h 818 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include <cstdint>
  3. #include <string>
  4. #include <vector>
  5. namespace WallpaperEngine::Application {
  6. class ApplicationContext;
  7. }
  8. namespace WallpaperEngine::Desktop {
  9. /** A window reported by the GNOME extension or KWin script, filtered by WE 2.8's rules (sub_14003D050) */
  10. struct WindowState {
  11. enum Flags : uint32_t {
  12. Focused = 1,
  13. Maximized = 2,
  14. /** focused, covers its monitor, not maximized */
  15. Fullscreen = 4,
  16. };
  17. std::string appId;
  18. /** wl_output name */
  19. std::string output;
  20. uint32_t flags = 0;
  21. };
  22. /** WE's per monitor pause: true when a pausing window is on one of outputs */
  23. bool pausesAnyOf (
  24. const std::vector<WindowState>& windows, const std::vector<std::string>& outputs,
  25. const Application::ApplicationContext& context
  26. );
  27. } // namespace WallpaperEngine::Desktop