mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-30 17:58:37 +08:00
UI: Do not remove focus on mouse leave events
For the "ignore wheel" widgets, do not leave focus on mouse leave events. This causes unintended side effects such as not being able to type in edit boxes, and is very annoying.
This commit is contained in:
@@ -514,11 +514,6 @@ void VolumeMeter::wheelEvent(QWheelEvent * event)
|
||||
QApplication::sendEvent(focusProxy(), event);
|
||||
}
|
||||
|
||||
void VolumeMeter::leaveEvent(QEvent * event)
|
||||
{
|
||||
clearFocus();
|
||||
}
|
||||
|
||||
VolumeMeter::VolumeMeter(QWidget *parent, obs_volmeter_t *obs_volmeter,
|
||||
bool vertical)
|
||||
: QWidget(parent), obs_volmeter(obs_volmeter),
|
||||
|
||||
Reference in New Issue
Block a user