Merge branch 'KDE/4.11'
This commit is contained in:
commit
98ebbb70a1
3 changed files with 8 additions and 5 deletions
|
@ -177,7 +177,6 @@ bool EglOnXBackend::initRenderingContext()
|
||||||
const EGLint context_attribs_31_core[] = {
|
const EGLint context_attribs_31_core[] = {
|
||||||
EGL_CONTEXT_MAJOR_VERSION_KHR, 3,
|
EGL_CONTEXT_MAJOR_VERSION_KHR, 3,
|
||||||
EGL_CONTEXT_MINOR_VERSION_KHR, 1,
|
EGL_CONTEXT_MINOR_VERSION_KHR, 1,
|
||||||
EGL_CONTEXT_FLAGS_KHR, EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR,
|
|
||||||
EGL_NONE
|
EGL_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ bool GlxBackend::initRenderingContext()
|
||||||
const int attribs_31_core_robustness[] = {
|
const int attribs_31_core_robustness[] = {
|
||||||
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
|
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
|
||||||
GLX_CONTEXT_MINOR_VERSION_ARB, 1,
|
GLX_CONTEXT_MINOR_VERSION_ARB, 1,
|
||||||
GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB | GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB,
|
GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB,
|
||||||
GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, GLX_LOSE_CONTEXT_ON_RESET_ARB,
|
GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, GLX_LOSE_CONTEXT_ON_RESET_ARB,
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
@ -163,7 +163,6 @@ bool GlxBackend::initRenderingContext()
|
||||||
const int attribs_31_core[] = {
|
const int attribs_31_core[] = {
|
||||||
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
|
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
|
||||||
GLX_CONTEXT_MINOR_VERSION_ARB, 1,
|
GLX_CONTEXT_MINOR_VERSION_ARB, 1,
|
||||||
GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB,
|
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -420,8 +420,13 @@ Workspace::~Workspace()
|
||||||
// TODO: grabXServer();
|
// TODO: grabXServer();
|
||||||
|
|
||||||
// Use stacking_order, so that kwin --replace keeps stacking order
|
// Use stacking_order, so that kwin --replace keeps stacking order
|
||||||
for (ToplevelList::iterator it = stacking_order.begin(), end = stacking_order.end(); it != end; ++it) {
|
const ToplevelList stack = stacking_order;
|
||||||
Client *c = qobject_cast<Client*>(*it);
|
// "mutex" the stackingorder, since anything trying to access it from now on will find
|
||||||
|
// many dangeling pointers and crash
|
||||||
|
stacking_order.clear();
|
||||||
|
|
||||||
|
for (ToplevelList::const_iterator it = stack.constBegin(), end = stack.constEnd(); it != end; ++it) {
|
||||||
|
Client *c = qobject_cast<Client*>(const_cast<Toplevel*>(*it));
|
||||||
if (!c) {
|
if (!c) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue