Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
569a135445 |
@ -99,6 +99,17 @@ class Window
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getWindowGeometry()
|
||||||
|
{
|
||||||
|
exec("xdotool getwindowgeometry --shell {$this->windowId}", $output, $status);
|
||||||
|
$ret = [];
|
||||||
|
foreach ($output as $line) {
|
||||||
|
list($k,$v) = explode("=",$line,2);
|
||||||
|
$ret[strtolower($k)]=$v;
|
||||||
|
}
|
||||||
|
return (object)$ret;
|
||||||
|
}
|
||||||
|
|
||||||
public function setWindowSize($width, $height)
|
public function setWindowSize($width, $height)
|
||||||
{
|
{
|
||||||
exec("xdotool windowsize {$this->windowId} {$width} {$height}");
|
exec("xdotool windowsize {$this->windowId} {$width} {$height}");
|
||||||
|
Reference in New Issue
Block a user