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.
This commit is contained in:
Andreas Kling 2021-06-18 00:04:15 +02:00
parent e4e94cd43d
commit 370d3749e5
Notes: sideshowbarker 2024-07-18 12:05:02 +09:00

View file

@ -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.