Q_ASSERT(m_output->extendedOutput() == 0);
m_output->setExtendedOutput(this);
m_extended_output_resource = wl_client_add_object(client,&wl_extended_output_interface,0,id,this);
+ m_extended_output_resource->destroy = ExtendedOutput::destroy_resource;
+
sendOutputOrientation(m_compositor->screenOrientation());
}
+void ExtendedOutput::destroy_resource(wl_resource *resource)
+{
+ ExtendedOutput *output = static_cast<ExtendedOutput *>(resource->data);
+ delete output;
+ free(resource);
+}
+
void ExtendedOutput::sendOutputOrientation(Qt::ScreenOrientation orientation)
{
int sendOpperation;
void sendOutputOrientation(Qt::ScreenOrientation orientation);
+ static void destroy_resource(wl_resource *resource);
+
private:
struct wl_resource *m_extended_output_resource;
Output *m_output;
Compositor *m_compositor;
-
};
}