Reputation: 83
I have got a Mono/C# application running on linux that has to behave like a panel. It is docked on a side and "always on top" but I can't make it to reserve space on screen. I found out to do something like this:
byte[] StrutData = new byte[4];
StrutData [2] = 20;
Gdk.Property.Change(this.GdkWindow, Gdk.Atom.Intern("_NET_WM_STRUT", false), Gdk.Atom.Intern("CARDINAL", false), 32, Gdk.PropMode.Replace, StrutData , 4);
Result of this is that all windows are in bottom half of screen and can be moved only about 50 pixels up and down. What is wrong? Or is it at least possible to do that?
Upvotes: 2
Views: 288