@raydiant/playlist-window-manager 0.0.0-test-21 → 0.0.0-test-23

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.
@@ -440,6 +440,21 @@ var BrowserWindowRenderer = /** @class */ (function () {
440
440
  contentBounds: window.getContentBounds(),
441
441
  normalBounds: window.getNormalBounds(),
442
442
  })));
443
+ if (window.isFullScreen() && !(0, boundUtils_1.isFullscreen)(window.getBounds())) {
444
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds7: window not fullscreen: ".concat(JSON.stringify({
445
+ fullscreen: window.isFullScreen(),
446
+ bounds: window.getBounds(),
447
+ contentBounds: window.getContentBounds(),
448
+ normalBounds: window.getNormalBounds(),
449
+ })));
450
+ window.maximize();
451
+ }
452
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds8: last: ".concat(JSON.stringify({
453
+ fullscreen: window.isFullScreen(),
454
+ bounds: window.getBounds(),
455
+ contentBounds: window.getContentBounds(),
456
+ normalBounds: window.getNormalBounds(),
457
+ })));
443
458
  };
444
459
  BrowserWindowRenderer.prototype.getWindow = function (windowId) {
445
460
  return this.windows[windowId];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.0.0-test-21",
3
+ "version": "0.0.0-test-23",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@
24
24
  "@types/jschannel": "^1.0.1",
25
25
  "@types/lodash": "^4.14.200",
26
26
  "@types/uuid": "8.3.0",
27
- "electron": "10.1.5",
27
+ "electron": "27.0.2",
28
28
  "jest": "^24.8.0",
29
29
  "ts-jest": "^24.0.2",
30
30
  "typescript": "^4.1.2"
@@ -6,7 +6,7 @@ import {
6
6
  screen,
7
7
  IpcMainEvent,
8
8
  Event,
9
- Details,
9
+ RenderProcessGoneDetails,
10
10
  BrowserWindowConstructorOptions,
11
11
  BrowserViewConstructorOptions,
12
12
  } from 'electron';
@@ -35,7 +35,10 @@ interface BrowserWindowRendererWindow {
35
35
  payload?: any
36
36
  ) => void;
37
37
  unresponsiveCallback: () => void;
38
- renderProcessGoneCallback: (event: Event, details: Details) => void;
38
+ renderProcessGoneCallback: (
39
+ event: Event,
40
+ details: RenderProcessGoneDetails
41
+ ) => void;
39
42
  }
40
43
 
41
44
  interface BrowserWindowRendererOptions {
@@ -180,7 +183,10 @@ export default class BrowserWindowRenderer
180
183
  );
181
184
  },
182
185
 
183
- renderProcessGoneCallback: (_: Event, details: Details) => {
186
+ renderProcessGoneCallback: (
187
+ _: Event,
188
+ details: RenderProcessGoneDetails
189
+ ) => {
184
190
  this.logger.error(
185
191
  `Window received 'render-process-gone' event. Reason: ${details.reason}`,
186
192
  { windowId }
@@ -574,6 +580,31 @@ export default class BrowserWindowRenderer
574
580
  }
575
581
  )}`
576
582
  );
583
+
584
+ if (window.isFullScreen() && !isFullscreen(window.getBounds())) {
585
+ this.logger.info(
586
+ `playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds7: window not fullscreen: ${JSON.stringify(
587
+ {
588
+ fullscreen: window.isFullScreen(),
589
+ bounds: window.getBounds(),
590
+ contentBounds: window.getContentBounds(),
591
+ normalBounds: window.getNormalBounds(),
592
+ }
593
+ )}`
594
+ );
595
+ window.maximize();
596
+ }
597
+
598
+ this.logger.info(
599
+ `playlist-window-manager/src/BrowserWindowRenderer.ts setWindowOrViewBounds8: last: ${JSON.stringify(
600
+ {
601
+ fullscreen: window.isFullScreen(),
602
+ bounds: window.getBounds(),
603
+ contentBounds: window.getContentBounds(),
604
+ normalBounds: window.getNormalBounds(),
605
+ }
606
+ )}`
607
+ );
577
608
  }
578
609
 
579
610
  private getWindow(windowId: string): BrowserWindowRendererWindow | null {