~kelemeng/compiz-core/bug780505

« back to all changes in this revision

Viewing changes to gtk/window-decorator/metacity.c

  • Committer: Daniel van Vugt
  • Date: 2012-02-17 03:56:51 UTC
  • mfrom: (3003.1.1 fix-924736)
  • Revision ID: vanvugt@gmail.com-20120217035651-ot6wy98g596b56xb
Fix semi-maximized windows missing borders or shadows (LP: #924736).

Implemented the same fix for this bug as unity-window-decorator had in
Ubuntu 11.10.

Merged from lp:~vanvugt/compiz-core/fix-924736

Show diffs side-by-side

added added

removed removed

Lines of Context:
521
521
    if (d->active)
522
522
        *flags |= (MetaFrameFlags ) META_FRAME_HAS_FOCUS;
523
523
 
524
 
    if ((d->state & META_MAXIMIZED))
 
524
    if ((d->state & META_MAXIMIZED) == META_MAXIMIZED)
525
525
        *flags |= (MetaFrameFlags ) META_FRAME_MAXIMIZED;
526
526
 
527
527
    if (d->state & WNCK_WINDOW_STATE_STICKY)
1142
1142
    decor_context_t *context;
1143
1143
    decor_shadow_t  *shadow;
1144
1144
 
1145
 
    if ((d->state & META_MAXIMIZED))
 
1145
    if ((d->state & META_MAXIMIZED) == META_MAXIMIZED)
1146
1146
    {
1147
1147
        if (!d->frame_window)
1148
1148
        {
1206
1206
    }
1207
1207
    else
1208
1208
    {
1209
 
        if ((d->state & META_MAXIMIZED))
 
1209
        if ((d->state & META_MAXIMIZED) == META_MAXIMIZED)
1210
1210
            decor_get_default_layout (context, d->client_width,
1211
1211
                                      d->client_height - d->frame->titlebar_height,
1212
1212
                                      &layout);