Skip to content

Commit 7397d15

Browse files
authored
Implemented minimizing (#347)
1 parent eff3a78 commit 7397d15

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Facades/Window.php

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* @method static void position($x, $y, $animated = false, $id = null)
1313
* @method static void alwaysOnTop($alwaysOnTop = true, $id = null)
1414
* @method static void reload($id = null)
15+
* @method static void maximize($id = null)
16+
* @method static void minimize($id = null)
1517
*/
1618
class Window extends Facade
1719
{

src/Windows/WindowManager.php

+7
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ public function maximize($id = null): void
6969
]);
7070
}
7171

72+
public function minimize($id = null): void
73+
{
74+
$this->client->post('window/minimize', [
75+
'id' => $id ?? $this->detectId(),
76+
]);
77+
}
78+
7279
public function reload($id = null): void
7380
{
7481
$this->client->post('window/reload', [

0 commit comments

Comments
 (0)