Skip to content

Instantly share code, notes, and snippets.

@nivelus
nivelus / x11_screen_grab.cpp
Created August 4, 2024 14:30 — forked from richard-to/x11_screen_grab.cpp
X11 Example code for grabbing screenshots of window and sending key events
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <X11/Xlib.h>