I want to have the n (currently only two, but I need more) largest windows, but not allowing them to be closed by the other most remote windows that were created earlier.
So, suppose we have 3 windows like this, created in the following order:
A
cannot cover B
or C
. B
will cover only A
but not C
. C
will cover A
and B
will not be covered by any of the previously created windows ( A
or B
).
To create windows, I used ElectronJS (the former atomic shell) and did the following:
var App = require('app')
, BrowserWindow = require('browser-window')
;
var mainWindow = null;
...
App.on('ready', function() {
mainWindow = new BrowserWindow({
width: 100
, height: 50
, resizable: false
, frame: false
, type: "desktop"
});
mainWindow.loadUrl('file://' + __dirname + '/../index.html');
...
});
type: "desktop"
, , . , ( , , ), , , ( B
A
).
x11? node-x11
, , (I Electron ): _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DESKTOP
.
?