diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-10-07 00:48:19 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-10-07 00:48:19 -0300 |
commit | 4f8e64821cd8ac6063854f5f5d32a2c22e534e4d (patch) | |
tree | 1cad42d667c82d40b84761d4bf8bf74093fd7c9a /src/xcommon.c | |
parent | 2e7a61550e82e2610f6ae1544d139841f0797fa2 (diff) |
Working at borderless mode is weird... make it optional
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'src/xcommon.c')
-rw-r--r-- | src/xcommon.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/xcommon.c b/src/xcommon.c index 865d612..0d26421 100644 --- a/src/xcommon.c +++ b/src/xcommon.c @@ -833,7 +833,7 @@ static void calculate_video_area( void ) } -int xcommon_open_display( const char *user_geometry, int aspect, int verbose ) +int xcommon_open_display( const char *user_geometry, int aspect, int border, int verbose ) { Pixmap curs_pix; XEvent xev; @@ -1065,13 +1065,14 @@ int xcommon_open_display( const char *user_geometry, int aspect, int verbose ) Atom prop = None; MWMHints mwmhints; -// if config_get_borderless - prop = XInternAtom( display, "_MOTIF_WM_INFO", True ); - if( prop == None ) { - mwmhints.flags = 0; - } else { - mwmhints.flags = MWM_HINTS_DECORATIONS; - mwmhints.decorations = 0; + if (!border) { + prop = XInternAtom( display, "_MOTIF_WM_INFO", True ); + if( prop == None ) { + mwmhints.flags = 0; + } else { + mwmhints.flags = MWM_HINTS_DECORATIONS; + mwmhints.decorations = 0; + } } if( mwmhints.flags ) { |