Merge branch 'Plasma/5.1'
Conflicts: CMakeLists.txt geometry.cpp kcmkwin/kwincompositing/kcmkwineffects.desktop kcmkwin/kwincompositing/kwincompositing.desktop kcmkwin/kwindecoration/kwindecoration.desktop kcmkwin/kwindesktop/desktop.desktop kcmkwin/kwinoptions/kwinactions.desktop kcmkwin/kwinoptions/kwinadvanced.desktop kcmkwin/kwinoptions/kwinfocus.desktop kcmkwin/kwinoptions/kwinmoving.desktop kcmkwin/kwinoptions/kwinoptions.desktop kcmkwin/kwinrules/kwinrules.desktop kcmkwin/kwinscreenedges/kwinscreenedges.desktop kcmkwin/kwintabbox/kwintabbox.desktop scripts/enforcedeco/metadata.desktop
This commit is contained in:
commit
5ceb1b4f75
3 changed files with 25 additions and 26 deletions
|
@ -2640,8 +2640,6 @@ void Client::finishMoveResize(bool cancel)
|
|||
if (isElectricBorderMaximizing()) {
|
||||
setQuickTileMode(electricMode);
|
||||
electricMaximizing = false;
|
||||
outline()->hide();
|
||||
elevate(false);
|
||||
} else if (!cancel) {
|
||||
if (!(maximizeMode() & MaximizeHorizontal)) {
|
||||
geom_restore.setX(geometry().x());
|
||||
|
@ -2684,6 +2682,10 @@ void Client::leaveMoveResize()
|
|||
syncRequest.timeout = NULL;
|
||||
if (ScreenEdges::self()->isDesktopSwitchingMovingClients())
|
||||
ScreenEdges::self()->reserveDesktopSwitching(false, Qt::Vertical|Qt::Horizontal);
|
||||
if (isElectricBorderMaximizing()) {
|
||||
outline()->hide();
|
||||
elevate(false);
|
||||
}
|
||||
}
|
||||
|
||||
// This function checks if it actually makes sense to perform a restricted move/resize.
|
||||
|
|
|
@ -392,33 +392,22 @@ void KWinScreenEdgesConfig::monitorDefaults()
|
|||
void KWinScreenEdgesConfig::monitorShowEvent()
|
||||
{
|
||||
// Check if they are enabled
|
||||
KConfigGroup config(m_config, "Compositing");
|
||||
if (config.readEntry("Enabled", true)) {
|
||||
// Compositing enabled
|
||||
config = KConfigGroup(m_config, "Plugins");
|
||||
KConfigGroup config(m_config, "Plugins");
|
||||
|
||||
// Present Windows
|
||||
bool enabled = effectEnabled(BuiltInEffect::PresentWindows, config);
|
||||
monitorItemSetEnabled(int(PresentWindowsCurrent), enabled);
|
||||
monitorItemSetEnabled(int(PresentWindowsAll), enabled);
|
||||
// Present Windows
|
||||
bool enabled = effectEnabled(BuiltInEffect::PresentWindows, config);
|
||||
monitorItemSetEnabled(int(PresentWindowsCurrent), enabled);
|
||||
monitorItemSetEnabled(int(PresentWindowsAll), enabled);
|
||||
|
||||
// Desktop Grid
|
||||
enabled = effectEnabled(BuiltInEffect::DesktopGrid, config);
|
||||
monitorItemSetEnabled(int(DesktopGrid), enabled);
|
||||
// Desktop Grid
|
||||
enabled = effectEnabled(BuiltInEffect::DesktopGrid, config);
|
||||
monitorItemSetEnabled(int(DesktopGrid), enabled);
|
||||
|
||||
// Desktop Cube
|
||||
enabled = effectEnabled(BuiltInEffect::Cube, config);
|
||||
monitorItemSetEnabled(int(Cube), enabled);
|
||||
monitorItemSetEnabled(int(Cylinder), enabled);
|
||||
monitorItemSetEnabled(int(Sphere), enabled);
|
||||
} else { // Compositing disabled
|
||||
monitorItemSetEnabled(int(PresentWindowsCurrent), false);
|
||||
monitorItemSetEnabled(int(PresentWindowsAll), false);
|
||||
monitorItemSetEnabled(int(DesktopGrid), false);
|
||||
monitorItemSetEnabled(int(Cube), false);
|
||||
monitorItemSetEnabled(int(Cylinder), false);
|
||||
monitorItemSetEnabled(int(Sphere), false);
|
||||
}
|
||||
// Desktop Cube
|
||||
enabled = effectEnabled(BuiltInEffect::Cube, config);
|
||||
monitorItemSetEnabled(int(Cube), enabled);
|
||||
monitorItemSetEnabled(int(Cylinder), enabled);
|
||||
monitorItemSetEnabled(int(Sphere), enabled);
|
||||
// tabbox, depends on reasonable focus policy.
|
||||
KConfigGroup config2(m_config, "Windows");
|
||||
QString focusPolicy = config2.readEntry("FocusPolicy", QString());
|
||||
|
|
|
@ -912,6 +912,14 @@ SceneOpenGL2::SceneOpenGL2(OpenGLBackend *backend)
|
|||
// base ctor already failed
|
||||
return;
|
||||
}
|
||||
|
||||
// We only support the OpenGL 2+ shader API, not GL_ARB_shader_objects
|
||||
if (!hasGLVersion(2, 0)) {
|
||||
qDebug() << "OpenGL 2.0 is not supported";
|
||||
init_ok = false;
|
||||
return;
|
||||
}
|
||||
|
||||
// Initialize color correction before the shaders
|
||||
slotColorCorrectedChanged(false);
|
||||
connect(options, SIGNAL(colorCorrectedChanged()), this, SLOT(slotColorCorrectedChanged()), Qt::QueuedConnection);
|
||||
|
|
Loading…
Reference in a new issue