Skip to content

Commit

Permalink
Remove commented-out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
alisabedard committed Oct 15, 2016
1 parent 009e327 commit 25fd451
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions mwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,11 @@ struct JBWMMwm { // paraphrased from MwmUtil.h
static void process_flags(struct JBWMClient * c)
{
struct JBWMClientOptions * o = &c->opt;
// if (o->no_titlebar && o->no_close_decor)
// o->no_titlebar = false;
if (o->tearoff) {
o->no_border = o->no_resize = o->no_min = o->no_max
= o->no_titlebar = true;
}
c->border = o->no_border ? 0 : 1;
#if 0
if (o->no_titlebar)
c->ignore_unmap ++;
#endif
}

static void do_functions(struct JBWMClientOptions * restrict o,
Expand Down Expand Up @@ -81,22 +75,6 @@ static void do_decorations(struct JBWMClientOptions * restrict o,
o->no_min_decor = true;
if (!(f & MWM_DECOR_TITLE))
o->no_titlebar = true;
#if 0
o->no_resize_decor = true;
o->no_resize_decor=!(f & MWM_DECOR_RESIZEH);
o->no_close_decor=!(f & MWM_DECOR_MENU);
o->no_min_decor=!(f & MWM_DECOR_MINIMIZE);
// This causes problems with QT5 dialogs:
o->no_titlebar=!(f & MWM_DECOR_TITLE);
o->no_close_decor=!(f & MWM_DECOR_MENU);
o->no_min_decor=!(f & MWM_DECOR_MINIMIZE);
o->no_titlebar=!(f & MWM_DECOR_TITLE);
if ((f & MWM_DECOR_MENU) && (f & MWM_DECOR_TITLE))
o->tearoff = true;
LOG("MWM_HINTS_DECORATIONS\topts: %d, %d, %d, %d",
o->no_resize_decor, o->no_titlebar, o->no_close_decor,
o->no_min_decor);
#endif
}

static Atom get_mwm_hints_atom(void)
Expand Down

0 comments on commit 25fd451

Please sign in to comment.