Bugfixes and improvements
This commit is contained in:
16
examples/select_and_grow.php
Normal file
16
examples/select_and_grow.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__."/../vendor/autoload.php";
|
||||
|
||||
use NoccyLabs\X11\WindowSelector;
|
||||
|
||||
$selector = new WindowSelector();
|
||||
|
||||
// Select window
|
||||
printf("Click a window to select it...\n");
|
||||
$window = $selector->select();
|
||||
$window->dump();
|
||||
|
||||
// Grow the window by 10 pixels
|
||||
$size = $window->getWindowSize();
|
||||
$window->setWindowSize($size->width + 10, $size->height + 10);
|
Reference in New Issue
Block a user