Skip to content

Commit 96be7b2

Browse files
committed
feat(aot): add event emitter for double-click
1 parent 065eb3f commit 96be7b2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

alwaysontop/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
ALWAYSONTOP_DISMISSED: 'dismissed',
33
ALWAYSONTOP_WILL_CLOSE: 'will-close',
4+
ALWAYSONTOP_DOUBLE_CLICK: 'double-click',
45
SIZE: {
56
width: 320,
67
height: 180

alwaysontop/render.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ const os = require('os');
66
const path = require('path');
77
const log = require('jitsi-meet-logger');
88

9-
const { ALWAYSONTOP_DISMISSED, ALWAYSONTOP_WILL_CLOSE, SIZE } = require('./constants');
9+
const {
10+
ALWAYSONTOP_DISMISSED,
11+
ALWAYSONTOP_DOUBLE_CLICK,
12+
ALWAYSONTOP_WILL_CLOSE,
13+
SIZE
14+
} = require('./constants');
1015

1116
/**
1217
* The logger instance
@@ -369,6 +374,7 @@ class AlwaysOnTop extends EventEmitter {
369374
this.logInfo('_setupAlwaysOnTopWindow: ondblclick');
370375
this._hideAlwaysOnTopWindow();
371376
this._jitsiMeetElectronWindow.show();
377+
this.emit(ALWAYSONTOP_DOUBLE_CLICK);
372378
this.logInfo('_setupAlwaysOnTopWindow: ondblclick end');
373379
},
374380
/**

0 commit comments

Comments
 (0)