void window_set_visible(bool visible) { if(visible) { XMapRaised(disp,win); GLXContext glxc = glXGetCurrentContext(); glXMakeCurrent(disp,win,glxc); if(visx != -1 && visy != -1) window_set_position(visx,visy); } else XUnmapWindow(disp, win); }
void WindowPositionTracker::sync(ui::Window window) { window_set_position( window, m_position ); }