|
@@ -50,6 +50,9 @@ slop::SlopWindow::SlopWindow() {
|
50
|
50
|
XSetClassHint( x11->display, window, &classhints );
|
51
|
51
|
XSetWMProperties( x11->display, window, &textprop, &textprop, NULL, 0, &sizehints, startup_state, NULL );
|
52
|
52
|
XFree( startup_state );
|
|
53
|
+ // Keep the window on top of all other windows.
|
|
54
|
+ Atom stateAbove = XInternAtom(x11->display, "_NET_WM_STATE_ABOVE", False);
|
|
55
|
+ XChangeProperty(x11->display, window, XInternAtom(x11->display, "_NET_WM_STATE", False), XA_ATOM, 32, PropModeReplace, (unsigned char *) &stateAbove, 1);
|
53
|
56
|
|
54
|
57
|
// Load up a opengl context
|
55
|
58
|
context = glXCreateContext( x11->display, &visual, 0, True );
|