php-x11/examples/select_window.php

12 lines
218 B
PHP

<?php
require_once __DIR__."/../vendor/autoload.php";
use NoccyLabs\X11\WindowSelector;
$selector = new WindowSelector();
printf("Click a window to select it...\n");
$window = $selector->select();
$window->dump();