bool DSWindowShell::setPosition(int x, int y)
{
+ DSLOG_DBG("DSWindowShell", "DSWindowShell:%p, Set Position (%d, %d)", this, x, y);
+
DS_GET_PRIV(DSWindowShell);
return priv->setPosition(x, y);
}
bool DSWindowShell::setSize(unsigned int w, unsigned int h)
{
- DS_GET_PRIV(DSWindowShell);
+ DSLOG_DBG("DSWindowShell", "DSWindowShell:%p, Set Size (%d, %d)", this, w, h);
+ DS_GET_PRIV(DSWindowShell);
return priv->setSize(w, h);
}
bool DSWindowShell::setGeometry(int x, int y, unsigned int w, unsigned int h)
{
- DSLOG_DBG("DSWindowShell", "Set Geometry (%d, %d, %d, %d)", x, y, w, h);
+ DSLOG_DBG("DSWindowShell", "DSWindowShell:%p, Set Geometry (%d, %d, %d, %d)", this, x, y, w, h);
DS_GET_PRIV(DSWindowShell);
return priv->setGeometry(x, y, w, h);
else
set = false;
- __handleUserGeometryHint(set);
+ __handleUserGeometryProperty(set);
}
}
-bool DSWindowShellPrivate::__handleUserGeometryHint(bool setUserGeometry)
+bool DSWindowShellPrivate::__handleUserGeometryProperty(bool setUserGeometry)
{
if (!__window) return false;
bool DSWindowShellPrivate::setType(int type)
{
+ if (__window)
+ __window->setType(type);
+
+ if (type == 9) // utility
+ __handleUserGeometryProperty(true);
+
return true;
}
int DSWindowShellPrivate::getType(void)
{
+ if (__window)
+ return __window->getType();
+
return 0;
}
void DSWindowShellPrivate::setAllowUserGeometry(bool set)
{
- if (__window)
- __window->allowUserGeometry(set);
+ __handleUserGeometryProperty(set);
}