What is supposed to happen is that space for my panel is supposed to be reserved but it's not reserved after setting the property _NET_WM_STRUT_PARTIAL. How do I get it to work? I'm also trying to set WM_NORMAL_HINTS but I haven't been able to figure out the layout of the data.Here's my code: js if(this[SYMS["opts"]].location == "bottom") { this.win._change_property("_NET_WM_STRUT",this.app.getXClient().atoms.CARDINAL,32,[ 0,0,0,this.win.height ],err => { if(err) throw err; }); 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; }); } else if(this[SYMS["opts"]].location == "top") { this.win._change_property("_NET_WM_STRUT",this.app.getXClient().atoms.CARDINAL,32,[ 0,0,this.win.height,0 ],err => { if(err) throw err; }); this.win._change_property("_NET_WM_STRUT_PARTIAL",this.app.getXClient().atoms.CARDINAL,32,[ 0,0,this.win.height,0, 0,0,0,0, this.win.x,this.win.x+this.win.width,0,0 ],err => { if(err) throw err; }); }
Submitted November 10, 2018 at 12:35AM by SpaceboyRoss
No comments:
Post a Comment