node-ewmh icon indicating copy to clipboard operation
node-ewmh copied to clipboard

More functions

Open RossComputerGuy opened this issue 6 years ago • 3 comments

There should be a way to set _NET_WM_STRUT. It's an array of 4 CARDINALs.

RossComputerGuy avatar Nov 07 '18 18:11 RossComputerGuy

Having functions for setting _NET_WM_STRUT and _NET_WM_STRUT_PARTIAL should also be added.

RossComputerGuy avatar Nov 07 '18 19:11 RossComputerGuy

As @santigimeno mentioned original intent for this library was to assist window managers authors. We need to rethink API in order to help WM-side and client programs authors

sidorares avatar Nov 07 '18 22:11 sidorares

I can't figure out how to calculate _NET_WM_STRUT_PARTIAL so can someone please tell me how to calculate that from my panel's x, y, width, and height? This is my code:

				this.win._change_property("_NET_WM_STRUT_PARTIAL",this.app.getXClient().atoms.CARDINAL,32,[
					0,0,0,this.win.height,
					0,0,0,0,
					0,0,this.win.x,this.win.x+this.win.width
				],err => {
					if(err) throw err;
				});

RossComputerGuy avatar Nov 09 '18 23:11 RossComputerGuy