mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
14 lines
314 B
C++
14 lines
314 B
C++
#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);
|
|
} |