ソースを参照

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.
Andreas Kling 4 年 前
コミット
370d3749e5
1 ファイル変更0 行追加11 行削除
  1. 0 11
      Userland/Services/WindowServer/WindowManager.cpp

+ 0 - 11
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.