actions: toggle screen lock: check if screen is lockable before asking for width
This commit is contained in:
@@ -53,6 +53,7 @@ struct Visualizer: Screen<NC::Window>, Tabbable
|
||||
virtual void spacePressed() OVERRIDE;
|
||||
virtual void mouseButtonPressed(MEVENT) OVERRIDE { }
|
||||
|
||||
virtual bool isLockable() OVERRIDE { return true; }
|
||||
virtual bool isMergable() OVERRIDE { return true; }
|
||||
|
||||
// private members
|
||||
@@ -60,9 +61,6 @@ struct Visualizer: Screen<NC::Window>, Tabbable
|
||||
void ResetFD();
|
||||
void FindOutputID();
|
||||
|
||||
protected:
|
||||
virtual bool isLockable() OVERRIDE { return true; }
|
||||
|
||||
private:
|
||||
void DrawSoundWave(int16_t *, ssize_t, size_t, size_t);
|
||||
void DrawSoundWaveStereo(int16_t *, int16_t *, ssize_t, size_t);
|
||||
|
||||
Reference in New Issue
Block a user