haiku: Fixed missing title bar for windows with decorations.

B_BORDERED_WINDOW_LOOK has a border but no title bar.
This commit is contained in:
Philipp Wiesemann 2017-06-03 23:00:50 +02:00
parent fc436a3a9d
commit 2113208d98
2 changed files with 2 additions and 2 deletions

View File

@ -586,7 +586,7 @@ private:
if(msg->FindBool("window-border", &bEnabled) != B_OK) { if(msg->FindBool("window-border", &bEnabled) != B_OK) {
return; return;
} }
SetLook(bEnabled ? B_BORDERED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK); SetLook(bEnabled ? B_TITLED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK);
} }
void _SetResizable(BMessage *msg) { void _SetResizable(BMessage *msg) {

View File

@ -41,7 +41,7 @@ static SDL_INLINE SDL_BApp *_GetBeApp() {
static int _InitWindow(_THIS, SDL_Window *window) { static int _InitWindow(_THIS, SDL_Window *window) {
uint32 flags = 0; uint32 flags = 0;
window_look look = B_BORDERED_WINDOW_LOOK; window_look look = B_TITLED_WINDOW_LOOK;
BRect bounds( BRect bounds(
window->x, window->x,