diff options
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 ) { |