|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
import { ChildProcessWithoutNullStreams, spawn } from "child_process";
|
|
|
|
|
import { EventEmitter } from "events";
|
|
|
|
|
import { promisify } from "util";
|
|
|
|
|
import simpleSpawn from "./simple-spawn";
|
|
|
|
|
import sleep from "./sleep";
|
|
|
|
|
|
|
|
|
@ -142,7 +141,11 @@ export default class Dialog extends EventEmitter {
|
|
|
|
|
"node-zenity",
|
|
|
|
|
]); // to activate it
|
|
|
|
|
if (last_position) {
|
|
|
|
|
const { width, height } = await get_geometry();
|
|
|
|
|
const geometry = await get_geometry();
|
|
|
|
|
if (!geometry) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
const { width, height } = geometry;
|
|
|
|
|
console.log(last_position, width, height);
|
|
|
|
|
await set_geometry({
|
|
|
|
|
x: last_position.x - width / 2 - 11,
|
|
|
|
|