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:
parent
df555388b9
commit
13e525e302
|
@ -288,9 +288,6 @@ WinBorder::SetName(const char* name)
|
|||
// and redraw it.
|
||||
|
||||
if (fDecorator) {
|
||||
|
||||
// TODO: Make sure this works!!
|
||||
|
||||
// before the change
|
||||
BRegion invalid(fDecorator->GetTabRect());
|
||||
|
||||
|
@ -299,6 +296,11 @@ WinBorder::SetName(const char* name)
|
|||
// after the change
|
||||
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()->TriggerRedraw();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue