gets transients! woot. tested and such.. no groups still tho
This commit is contained in:
parent
a93f06f5b3
commit
34cd50ec51
3 changed files with 23 additions and 1 deletions
|
@ -237,7 +237,7 @@ void OBClient::getMwmHints()
|
||||||
(unsigned long **)&hints))
|
(unsigned long **)&hints))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (num == MwmHints::elements) {
|
if (num >= MwmHints::elements) {
|
||||||
// retrieved the hints
|
// retrieved the hints
|
||||||
_mwmhints.flags = hints[0];
|
_mwmhints.flags = hints[0];
|
||||||
_mwmhints.functions = hints[1];
|
_mwmhints.functions = hints[1];
|
||||||
|
@ -608,6 +608,7 @@ void OBClient::propertyHandler(const XPropertyEvent &e)
|
||||||
getType();
|
getType();
|
||||||
calcLayer(); // type may have changed, so update the layer
|
calcLayer(); // type may have changed, so update the layer
|
||||||
setupDecorAndFunctions();
|
setupDecorAndFunctions();
|
||||||
|
frame->adjustSize(); // this updates the frame for any new decor settings
|
||||||
}
|
}
|
||||||
else if (e.atom == property->atom(otk::OBProperty::net_wm_name) ||
|
else if (e.atom == property->atom(otk::OBProperty::net_wm_name) ||
|
||||||
e.atom == property->atom(otk::OBProperty::wm_name))
|
e.atom == property->atom(otk::OBProperty::wm_name))
|
||||||
|
|
|
@ -442,6 +442,9 @@ public:
|
||||||
//! Returns the functions that the user can perform on the window
|
//! Returns the functions that the user can perform on the window
|
||||||
inline FunctionFlags funtions() const { return _functions; }
|
inline FunctionFlags funtions() const { return _functions; }
|
||||||
|
|
||||||
|
//! Return the client this window is transient for
|
||||||
|
inline OBClient *transientFor() const { return _transient_for; }
|
||||||
|
|
||||||
//! Returns if the window is modal
|
//! Returns if the window is modal
|
||||||
/*!
|
/*!
|
||||||
If the window is modal, then no other windows that it is related to can get
|
If the window is modal, then no other windows that it is related to can get
|
||||||
|
|
|
@ -2134,6 +2134,23 @@ static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static PyObject *_wrap_OBClient_transientFor(PyObject *self, PyObject *args) {
|
||||||
|
PyObject *resultobj;
|
||||||
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
||||||
|
ob::OBClient *result;
|
||||||
|
PyObject * obj0 = 0 ;
|
||||||
|
|
||||||
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_transientFor",&obj0)) goto fail;
|
||||||
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||||
|
result = (ob::OBClient *)((ob::OBClient const *)arg1)->transientFor();
|
||||||
|
|
||||||
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
|
static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
|
||||||
PyObject *resultobj;
|
PyObject *resultobj;
|
||||||
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
||||||
|
@ -2795,6 +2812,7 @@ static PyMethodDef SwigMethods[] = {
|
||||||
{ (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
|
{ (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
|
||||||
{ (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
|
{ (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
|
||||||
{ (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
|
{ (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
|
||||||
|
{ (char *)"OBClient_transientFor", _wrap_OBClient_transientFor, METH_VARARGS },
|
||||||
{ (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
|
{ (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
|
||||||
{ (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
|
{ (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
|
||||||
{ (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
|
{ (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
|
||||||
|
|
Loading…
Reference in a new issue