New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add setAlwaysOnTop() to surface #3718

Closed
Leappeal opened this Issue Aug 25, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@Leappeal

Leappeal commented Aug 25, 2015

"frame.setAlwaysOnTop(true);" no longer works in the 3.0 version. Has anyone figured out a way to keep the window on top?

@benfry benfry changed the title from "stay on top " no longer working in 3.0 version to add setAlwaysOnTop() to surface Aug 31, 2015

@benfry benfry added the enhancement label Aug 31, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 9, 2015

Member

@codeanticode is this possible in JOGL?

Member

benfry commented Sep 9, 2015

@codeanticode is this possible in JOGL?

@neilcsmith-net

This comment has been minimized.

Show comment
Hide comment
@neilcsmith-net

neilcsmith-net Sep 9, 2015

Definitely possible with JOGL.

My current workaround is -

protected PSurface initSurface() {
            PSurface s = super.initSurface();
            GLWindow window = (GLWindow) surface.getNative();
            window.setAlwaysOnTop(true);
            // window.setUndecorated(true);
            return s;
}

Note also possible to do things like set undecorated that way. This may be possible in other places than overriding initSurface(), but not sure all systems will take any notice once the window is visible.

neilcsmith-net commented Sep 9, 2015

Definitely possible with JOGL.

My current workaround is -

protected PSurface initSurface() {
            PSurface s = super.initSurface();
            GLWindow window = (GLWindow) surface.getNative();
            window.setAlwaysOnTop(true);
            // window.setUndecorated(true);
            return s;
}

Note also possible to do things like set undecorated that way. This may be possible in other places than overriding initSurface(), but not sure all systems will take any notice once the window is visible.

@benfry benfry closed this in 69c26b8 Sep 11, 2015

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 11, 2015

Member

Implemented for all renderers in 3.0 beta 6.

Member

benfry commented Sep 11, 2015

Implemented for all renderers in 3.0 beta 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment