GLUTSETWINDOWSTAYONTOP

Section: C Library Functions (3)
Updated: LOCAL
Index Return to Main Contents

BSD mandoc
 

NAME

glutSetWindowStayOnTop - Set stay on top mode for current window  

LIBRARY

OpenGLUT - experimental  

SYNOPSIS

In openglut.h Ft void Fn glutSetWindowStayOnTop int enable  

PARAMETERS

Bf Em
 enable Ef
 Either  Bf Sy
 GL_TRUE Ef
 or  Bf Sy
 GL_FALSE Ef
   

DESCRIPTION

 

CAVEATS

Does not work on all window managers.

Sends the Icewm style message to all window managers (KDE, twm, blackbox, ratpoison, amiwm, and whatever others you have). Can we detect Icewm reliably and only send the Icewm formatted message for Icewm? Possibbly harmless as it stands, but looks wrong.

 

TODO

Can a glutGet() be defined to tell us whether a window can be made to stay on top? Or whether a window has (successfully) been marked for staying on top?

Should walk the tree of menus and glutPopWindow() (or all windows that are of menu-window type?).

Investigate making a workalike variant using glutPopWindow() to mimic the feature where not directly supported.