forked from Shinonome/dots-hyprland
overview: remove debug print
This commit is contained in:
@@ -113,9 +113,8 @@ export default () => {
|
|||||||
margin-bottom: -${Math.round((y + h) * OVERVIEW_SCALE)}px;
|
margin-bottom: -${Math.round((y + h) * OVERVIEW_SCALE)}px;
|
||||||
`,
|
`,
|
||||||
onClicked: (self) => {
|
onClicked: (self) => {
|
||||||
// Hyprland.sendMessage(`dispatch focuswindow address:${address}`);
|
Hyprland.sendMessage(`dispatch focuswindow address:${address}`);
|
||||||
// App.closeWindow('overview');
|
App.closeWindow('overview');
|
||||||
console.log(x, y, w, h, '\n\n', self.css);
|
|
||||||
},
|
},
|
||||||
onMiddleClickRelease: () => Hyprland.sendMessage(`dispatch closewindow address:${address}`),
|
onMiddleClickRelease: () => Hyprland.sendMessage(`dispatch closewindow address:${address}`),
|
||||||
onSecondaryClick: (button) => {
|
onSecondaryClick: (button) => {
|
||||||
@@ -287,13 +286,11 @@ export default () => {
|
|||||||
let c = clientMap.get(clientJson.address);
|
let c = clientMap.get(clientJson.address);
|
||||||
if (c) {
|
if (c) {
|
||||||
if (c.attribute?.ws !== clientJson.workspace.id) {
|
if (c.attribute?.ws !== clientJson.workspace.id) {
|
||||||
console.log('set: del')
|
|
||||||
c.destroy();
|
c.destroy();
|
||||||
c = null;
|
c = null;
|
||||||
clientMap.delete(clientJson.address);
|
clientMap.delete(clientJson.address);
|
||||||
}
|
}
|
||||||
else if (c) {
|
else if (c) {
|
||||||
console.log('set: move')
|
|
||||||
c.attribute.w = clientJson.size[0];
|
c.attribute.w = clientJson.size[0];
|
||||||
c.attribute.h = clientJson.size[1];
|
c.attribute.h = clientJson.size[1];
|
||||||
c.attribute.updateIconSize(c);
|
c.attribute.updateIconSize(c);
|
||||||
@@ -318,7 +315,6 @@ export default () => {
|
|||||||
let c = clientMap.get(clientAddress);
|
let c = clientMap.get(clientAddress);
|
||||||
if (!c) return;
|
if (!c) return;
|
||||||
if (c.attribute?.ws === offset + index) {
|
if (c.attribute?.ws === offset + index) {
|
||||||
console.log('unset: del')
|
|
||||||
c.destroy();
|
c.destroy();
|
||||||
c = null;
|
c = null;
|
||||||
clientMap.delete(clientAddress);
|
clientMap.delete(clientAddress);
|
||||||
|
|||||||
Reference in New Issue
Block a user