From 2c929cd7f79f55791aef8cc2ea59a11b688fc044 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Tue, 27 Dec 2016 01:34:47 +0100 Subject: [PATCH] Added windowMinmize() and windowRestore() --- src/Window.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Window.php b/src/Window.php index 5f5fed4..36f4fec 100644 --- a/src/Window.php +++ b/src/Window.php @@ -116,6 +116,16 @@ class Window return $this; } + public function windowMinimize() + { + exec("xdotool windowminimize {$this->windowId}"); + } + + public function windowRestore() + { + exec("xdotool windowmap {$this->windowId}"); + } + public function dump() { $size = $this->getWindowSize();