1 2 3 4 5 6 7 8 9 10 11 12 13 14
#pragma once #include <string> #include <X11/Xlib.h> namespace gsr { enum class WindowCaptureType { FOCUSED, CURSOR }; Window get_focused_window(Display *dpy, WindowCaptureType cap_type); std::string get_focused_window_name(Display *dpy, WindowCaptureType window_capture_type); }