mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* GuiWorkArea::focusInEvent(): avoid unnecessary full redraw if the work area was already current.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23409 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a837d22ab9
commit
f5c54d8b69
@ -612,7 +612,9 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e)
|
||||
|
||||
void GuiWorkArea::focusInEvent(QFocusEvent * e)
|
||||
{
|
||||
lyx_view_->setCurrentWorkArea(this);
|
||||
if (lyx_view_->currentWorkArea() != this)
|
||||
lyx_view_->setCurrentWorkArea(this);
|
||||
|
||||
// Repaint the whole screen.
|
||||
// Note: this is different from redraw() as only the backing pixmap
|
||||
// will be redrawn, which is cheap.
|
||||
|
Loading…
Reference in New Issue
Block a user