Skip to content

Commit

Permalink
fix empty focus state on minimize
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Jul 1, 2023
1 parent c1ed3d6 commit 741e894
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ __Get Latest Stable Build (Recommended):__
</tr>
<tr>
<td>winbox.bundle.min.js</td>
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.7/dist/winbox.bundle.min.js" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/winbox.bundle.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/winbox.bundle.min.js</a></td>
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.73/dist/winbox.bundle.min.js" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/winbox.bundle.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/winbox.bundle.min.js</a></td>
</tr>
<tr>
<td colspan=3">
Expand All @@ -44,14 +44,14 @@ __Get Latest Stable Build (Recommended):__
</tr>
<tr>
<td>winbox.min.js</td>
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.7/dist/js/winbox.min.js" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/js/winbox.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/js/winbox.min.js</a></td>
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.73/dist/js/winbox.min.js" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/js/winbox.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/js/winbox.min.js</a></td>
</tr>
<tr></tr>
<tr>
<td>winbox.min.css</td>
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.7/dist/css/winbox.min.css" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/css/winbox.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/dist/css/winbox.min.css</a></td>
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.73/dist/css/winbox.min.css" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/css/winbox.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/dist/css/winbox.min.css</a></td>
</tr>
<tr>
<td colspan=3">
Expand All @@ -60,25 +60,25 @@ __Get Latest Stable Build (Recommended):__
</tr>
<tr>
<td>ES6 Modules</td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.7/src/js" target="_blank">Download</a></td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.73/src/js" target="_blank">Download</a></td>
<td>The <i>/src/js</i> folder of this Github repository</td>
</tr>
<tr></tr>
<tr>
<td>LESS Files (source)</td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.7/src/css" target="_blank">Download</a></td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.73/src/css" target="_blank">Download</a></td>
<td>The <i>/src/css</i> folder of this Github repository</td>
</tr>
<tr></tr>
<tr>
<td>winbox.css (compiled)</td>
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.7/src/css/winbox.css" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/src/css/winbox.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.7/src/css/winbox.css</a></td>
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.73/src/css/winbox.css" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/src/css/winbox.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.73/src/css/winbox.css</a></td>
</tr>
<tr></tr>
<tr>
<td>src.zip</td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.7/dist" target="_blank">Download</a></td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.73/dist" target="_blank">Download</a></td>
<td>Download all source files including image original resources.</td>
</tr>
</table>
Expand Down Expand Up @@ -152,7 +152,7 @@ You can also load modules via CDN, e.g.:

```html
<script type="module">
import WinBox from "https://unpkg.com/[email protected].7/src/js/winbox.js";
import WinBox from "https://unpkg.com/[email protected].73/src/js/winbox.js";
</script>
```

Expand Down
4 changes: 2 additions & 2 deletions dist/js/winbox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/winbox.bundle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "winbox",
"version": "0.2.72",
"version": "0.2.73",
"description": "Modern HTML5 window manager for the web.",
"homepage": "https://nextapps-de.github.io/winbox/",
"author": "Thomas Wilkerling",
Expand Down
5 changes: 1 addition & 4 deletions src/js/winbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ WinBox.prototype.minimize = function(state){
update_min_stack();
this.dom.title = this.title;
this.addClass("min");
this.blur();
this.min = true;

const stack_length = stack_win.length;
Expand All @@ -995,10 +996,6 @@ WinBox.prototype.minimize = function(state){
}
}
}
else{

this.blur();
}

this.onminimize && this.onminimize();
}
Expand Down

0 comments on commit 741e894

Please sign in to comment.