Commit 4217fcb1 authored by Matthew D'Asaro's avatar Matthew D'Asaro Committed by Alexandre Julliard

winex11: Add registry option to let wine decorate windows.

parent 81f2d3cc
......@@ -148,6 +148,8 @@ static unsigned long get_mwm_decorations( DWORD style, DWORD ex_style )
{
unsigned long ret = 0;
if (!decorated_mode) return ret;
if (ex_style & WS_EX_TOOLWINDOW) return 0;
if ((style & WS_CAPTION) == WS_CAPTION)
......
......@@ -548,6 +548,7 @@ extern int use_xkb;
extern int use_take_focus;
extern int use_primary_selection;
extern int managed_mode;
extern int decorated_mode;
extern int private_color_map;
extern int primary_monitor;
extern int copy_default_colors;
......
......@@ -82,6 +82,7 @@ int use_xkb = 1;
int use_take_focus = 1;
int use_primary_selection = 0;
int managed_mode = 1;
int decorated_mode = 1;
int private_color_map = 0;
int primary_monitor = 0;
int client_side_with_core = 1;
......@@ -360,6 +361,9 @@ static void setup_options(void)
if (!get_config_key( hkey, appkey, "Managed", buffer, sizeof(buffer) ))
managed_mode = IS_OPTION_TRUE( buffer[0] );
if (!get_config_key( hkey, appkey, "Decorated", buffer, sizeof(buffer) ))
decorated_mode = IS_OPTION_TRUE( buffer[0] );
if (!get_config_key( hkey, appkey, "DXGrab", buffer, sizeof(buffer) ))
dxgrab = IS_OPTION_TRUE( buffer[0] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment