From 370d3749e5521551c3d59adaf456110fb3afd11d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 18 Jun 2021 00:04:15 +0200 Subject: [PATCH] WindowServer: Remove weird feature where Ctrl+Wheel changed opacity This feature had been there since early on and was not actually useful for anything. I just added it because it was fun. In retrospect, it's not a very good feature and I only ever activated it by accident. --- Userland/Services/WindowServer/WindowManager.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index 5fa28f751a..19c382d55b 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -1022,17 +1022,6 @@ void WindowManager::process_mouse_event(MouseEvent& event, Window*& hovered_wind } } - if (m_keyboard_modifiers == Mod_Super && event.type() == Event::MouseWheel) { - float opacity_change = -event.wheel_delta() * 0.05f; - float new_opacity = window.opacity() + opacity_change; - if (new_opacity < 0.05f) - new_opacity = 0.05f; - if (new_opacity > 1.0f) - new_opacity = 1.0f; - window.set_opacity(new_opacity); - return; - } - VERIFY(window.hit_test(event.position())); if (event.type() == Event::MouseDown) { // We're clicking on something that's blocked by a modal window.