@asdf-overlay/electron 0.9.4 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/surface.js +3 -0
  2. package/package.json +2 -2
package/lib/surface.js CHANGED
@@ -49,6 +49,9 @@ export class ElectronOverlaySurface {
49
49
  * Copy overlay texture in gpu accelerated shared texture mode.
50
50
  */
51
51
  async paintAccelerated(texture) {
52
+ if (texture.widgetType !== 'frame') {
53
+ return;
54
+ }
52
55
  const rect = texture.metadata.captureUpdateRect ?? texture.contentRect;
53
56
  // update only changed part
54
57
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asdf-overlay/electron",
3
- "version": "0.9.4",
3
+ "version": "0.9.6",
4
4
  "description": "Asdf overlay Electron integration",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "electron": "^37.3.1",
37
- "@asdf-overlay/core": "0.9.4"
37
+ "@asdf-overlay/core": "0.9.6"
38
38
  },
39
39
  "scripts": {
40
40
  "build:dist": "tsc",