istathar/java-gnome

Problem with org.gnome.gtk.Window setKeepAbove/setKeepBelow methods

Jaker0 opened this issue · 1 comments

I'm trying to make somewhat of a desktop widget application using this API. I'm trying to force my org.gnome.gtk.Window instance to stay on the desktop using the setKeepAbove and setKeepBelow methods, but they seemingly have no effect. Am I doing something wrong? Is there another (or better) way to go about trying to do this?

Code:

public static void main(String[] args) {
        Gtk.init(args);

        Window window = new Window();

        window.setKeepAbove(false);
        window.setKeepBelow(true);
        window.setDefaultSize(400,600);
        window.setDecorated(false);
        window.showAll();

        Gtk.main();
}

As those methods seemingly do nothing when using the C GTK on my system, this is not the fault of java-gnome.