}
std::vector<int> const & ids = guiApp->viewIds();
- for (int i = 0; i != ids.size(); ++i) {
+ for (size_type i = 0; i != ids.size(); ++i) {
if (id_ == ids[i])
continue;
if (guiApp->view(ids[i]).workArea(*b)) {
// break;
case QEvent::WindowActivate: {
+ if (this == guiApp->currentView()) {
+ setFocus();
+ return QMainWindow::event(e);
+ }
guiApp->setCurrentView(*this);
if (d.current_work_area_) {
BufferView & bv = d.current_work_area_->bufferView();
int l, t, r, b;
getContentsMargins(&l, &t, &r, &b);
//are the frames in default state?
+ d.current_work_area_->setFrameStyle(QFrame::NoFrame);
if (l == 0) {
- d.current_work_area_->setFrameStyle(QFrame::NoFrame);
setContentsMargins(-2, -2, -2, -2);
} else {
- d.current_work_area_->setFrameStyle(QFrame::NoFrame);
setContentsMargins(0, 0, 0, 0);
}
return;