haiku: Fixed missing title bar for windows with decorations.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 03 Jun 2017 23:00:50 +0200
changeset 11062a91d5d040223
parent 11061 b860259d72e5
child 11063 43d5a039018f
haiku: Fixed missing title bar for windows with decorations.

B_BORDERED_WINDOW_LOOK has a border but no title bar.
src/video/haiku/SDL_BWin.h
src/video/haiku/SDL_bwindow.cc
     1.1 --- a/src/video/haiku/SDL_BWin.h	Sat Jun 03 23:00:40 2017 +0200
     1.2 +++ b/src/video/haiku/SDL_BWin.h	Sat Jun 03 23:00:50 2017 +0200
     1.3 @@ -586,7 +586,7 @@
     1.4          if(msg->FindBool("window-border", &bEnabled) != B_OK) {
     1.5              return;
     1.6          }
     1.7 -        SetLook(bEnabled ? B_BORDERED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK);
     1.8 +        SetLook(bEnabled ? B_TITLED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK);
     1.9      }
    1.10  
    1.11      void _SetResizable(BMessage *msg) {
     2.1 --- a/src/video/haiku/SDL_bwindow.cc	Sat Jun 03 23:00:40 2017 +0200
     2.2 +++ b/src/video/haiku/SDL_bwindow.cc	Sat Jun 03 23:00:50 2017 +0200
     2.3 @@ -41,7 +41,7 @@
     2.4  
     2.5  static int _InitWindow(_THIS, SDL_Window *window) {
     2.6  	uint32 flags = 0;
     2.7 -	window_look look = B_BORDERED_WINDOW_LOOK;
     2.8 +	window_look look = B_TITLED_WINDOW_LOOK;
     2.9  
    2.10  	BRect bounds(
    2.11          window->x,