bool initCompositor();
void shutdownCompositor();
Surface* getSurfaceFromNativeSurface(struct native_surface* nativeSurface);
- void checkForNewSurface();
+ void checkForNewSurfaceNativeContent();
void printDebug();
void* eventLoop();
void createSurfaceForWindow(Window w);
void configureSurfaceWindow(Window w);
Surface* getSurfaceForWindow(Window w);
- void checkForNewSurface();
+ void checkForNewSurfaceNativeContent();
void destroy_surface(Window w);
void updateSurface(Surface* s, Window w, XPlatformSurface* x11surf);
void MapWindow(Window w);
return NULL;
}
-void WaylandWindowSystem::checkForNewSurface()
+void WaylandWindowSystem::checkForNewSurfaceNativeContent()
{
m_pScene->lockScene();
LayerList layers = m_pScene->getCurrentRenderOrder();
wl_client_add_resource(client, &cb->resource);
wl_list_insert(windowSystem->m_listFrameCallback.prev, &cb->link);
- windowSystem->checkForNewSurface();
+ windowSystem->checkForNewSurfaceNativeContent();
idleEventRepaint(windowSystem);
LOG_DEBUG("WaylandWindowSystem", "surfaceIFFrame OUT");
return NULL;
}
-void X11WindowSystem::checkForNewSurface()
+void X11WindowSystem::checkForNewSurfaceNativeContent()
{
m_pScene->lockScene();
LayerList layers = m_pScene->getCurrentRenderOrder();
LOG_DEBUG("X11WindowSystem", "Created native Surface for X11 Window id " << window);
- surface->setNativeContent(window);
surface->platform = platformSurface;
int winWidth = att.width;
int winHeight = att.height;
- surface->OriginalSourceHeight =winHeight;
+ surface->OriginalSourceHeight = winHeight;
surface->OriginalSourceWidth = winWidth;
LOG_DEBUG("X11WindowSystem", "Original width " << surface->OriginalSourceWidth);
}
else
{
- this->checkForNewSurface();
+ this->checkForNewSurfaceNativeContent();
checkRedraw = true;
}