}
+void DSWindowShell::setShellSurface(IDSWaylandShellSurface *shellSurface)
+{
+ DS_GET_PRIV(DSWindowShell);
+ priv->setShellSurface(shellSurface);
+}
+
+IDSWaylandShellSurface *DSWindowShell::getShellSurface(void)
+{
+ DS_GET_PRIV(DSWindowShell);
+ return priv->getShellSurface();
+}
+
bool DSWindowShell::setPosition(int x, int y)
{
DS_GET_PRIV(DSWindowShell);
#include "DSStruct.h"
#include "DSCore.h"
+#include "IDSWaylandShell.h"
namespace display_server
{
void destroy(void);
+ void setShellSurface(IDSWaylandShellSurface *zxdgSurface);
+ IDSWaylandShellSurface *getShellSurface(void);
+
bool setPosition(int x, int y);
stPosition getPosition(void);
DSWindowShellPrivate::DSWindowShellPrivate(DSWindowShell *p_ptr, DSWindow *window)
: __p_ptr(p_ptr),
__window(window),
+ __shellSurface(nullptr),
__x(0), __y(0),
__w(1), __h(1)
{
}
+void DSWindowShellPrivate::setShellSurface(IDSWaylandShellSurface *shellSurface)
+{
+ __shellSurface = shellSurface;
+}
+
+IDSWaylandShellSurface *DSWindowShellPrivate::getShellSurface(void)
+{
+ return __shellSurface;
+}
+
bool DSWindowShellPrivate::setPosition(int x, int y)
{
__x = x;
void destroy(void);
+ void setShellSurface(IDSWaylandShellSurface *shellSurface);
+ IDSWaylandShellSurface *getShellSurface(void);
+
bool setPosition(int x, int y);
stPosition getPosition(void);
private:
DSWindow *__window;
+ IDSWaylandShellSurface *__shellSurface;
int __x, __y;
unsigned int __w, __h;
};
DSWindowShell *dsWinShell = __findWindowShell(dsSurface);
if (dsWinShell)
{
- DSLOG_DBG("DSZONE", "Find DSWindowShell (%p)... setWlShellSurface!", dsWinShell);
+ DSLOG_DBG("DSZONE", "Find DSWindowShell (%p)... setShellSurface!", dsWinShell);
+ dsWinShell->setShellSurface(waylandShellSurface);
}
}
}