WinBorder::SetName() now also triggers rebuilding the decorator region - IOW BWindow::SetTitle()
should now work as expected. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14849 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -288,9 +288,6 @@ WinBorder::SetName(const char* name)
|
|||||||
// and redraw it.
|
// and redraw it.
|
||||||
|
|
||||||
if (fDecorator) {
|
if (fDecorator) {
|
||||||
|
|
||||||
// TODO: Make sure this works!!
|
|
||||||
|
|
||||||
// before the change
|
// before the change
|
||||||
BRegion invalid(fDecorator->GetTabRect());
|
BRegion invalid(fDecorator->GetTabRect());
|
||||||
|
|
||||||
@@ -299,6 +296,11 @@ WinBorder::SetName(const char* name)
|
|||||||
// after the change
|
// after the change
|
||||||
invalid.Include(fDecorator->GetTabRect());
|
invalid.Include(fDecorator->GetTabRect());
|
||||||
|
|
||||||
|
// TODO: still doesn't look good (visually), but at least it works
|
||||||
|
fRebuildDecRegion = true;
|
||||||
|
GetRootLayer()->MarkForRebuild(invalid);
|
||||||
|
GetRootLayer()->TriggerRebuild();
|
||||||
|
|
||||||
GetRootLayer()->MarkForRedraw(invalid);
|
GetRootLayer()->MarkForRedraw(invalid);
|
||||||
GetRootLayer()->TriggerRedraw();
|
GetRootLayer()->TriggerRedraw();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user