~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
    gdk_error_trap_push ();
261
261
 
262
262
    /* [rtl, ru, rtr], [rl, mv, rr], [rbl, rb, rbr] */
263
 
    for (i = 0; i < 3; i++)
 
263
    for (i = 0; i < 3; ++i)
264
264
    {
265
265
        static guint event_window_actions[3][3] = {
266
266
            {
278
278
            }
279
279
        };
280
280
 
281
 
        for (j = 0; j < 3; j++)
 
281
        for (j = 0; j < 3; ++j)
282
282
        {
283
283
            w = 0;
284
284
            h = 0;
316
316
        actions = 0;
317
317
 
318
318
    /* Above, stick, unshade and unstick are only available in wnck => 2.18.1 */
319
 
    for (i = 0; i < BUTTON_NUM; i++)
 
319
    for (i = 0; i < BUTTON_NUM; ++i)
320
320
    {
321
321
        static guint button_actions[BUTTON_NUM] = {
322
322
            WNCK_WINDOW_ACTION_CLOSE,
1116
1116
        {"utility", DECOR_WINDOW_TYPE_UTILITY}
1117
1117
    };
1118
1118
 
1119
 
    for (i = 0; i < n_type_strings; i++)
 
1119
    for (i = 0; i < n_type_strings; ++i)
1120
1120
    {
1121
1121
        if (strcmp (d->frame->type, type_strings[i].type) == 0)
1122
1122
            frame_type |= type_strings[i].flag;
1161
1161
 
1162
1162
    win_state = wnck_window_get_state (d->win);
1163
1163
 
1164
 
    for (i = 0; i < n_state_bits; i++)
 
1164
    for (i = 0; i < n_state_bits; ++i)
1165
1165
    {
1166
1166
        if (win_state & state_bits[i].wnck_flag)
1167
1167
            frame_state |= state_bits[i].decor_flag;
1211
1211
        { DECOR_WINDOW_ACTION_BELOW, WNCK_WINDOW_ACTION_BELOW },
1212
1212
    };
1213
1213
 
1214
 
    for (i = 0; i < n_action_bits; i++)
 
1214
    for (i = 0; i < n_action_bits; ++i)
1215
1215
    {
1216
1216
        if (win_actions & action_bits[i].wnck_flag)
1217
1217
            frame_actions |= action_bits[i].decor_flag;
1402
1402
    data = decor_alloc_property (WINDOW_TYPE_FRAMES_NUM * 2, WINDOW_DECORATION_TYPE_PIXMAP);
1403
1403
 
1404
1404
    /* All active states and all inactive states */
1405
 
    for (i = 0; i < WINDOW_TYPE_FRAMES_NUM * 2; i++)
 
1405
    for (i = 0; i < WINDOW_TYPE_FRAMES_NUM * 2; ++i)
1406
1406
    {
1407
1407
        frame = gwd_get_decor_frame (default_frames[i].name);
1408
1408
        extents = frame->win_extents;
1438
1438
 
1439
1439
        unsigned int j, k;
1440
1440
 
1441
 
        for (j = 0; j < 3; j++)
 
1441
        for (j = 0; j < 3; ++j)
1442
1442
        {
1443
1443
            for (k = 0; k < 3; k++)
1444
1444
            {
1446
1446
            }
1447
1447
        }
1448
1448
 
1449
 
        for (j = 0; j < BUTTON_NUM; j++)
 
1449
        for (j = 0; j < BUTTON_NUM; ++j)
1450
1450
        {
1451
1451
            default_frames[i].d->button_windows[j].window = None;
1452
1452
            default_frames[i].d->button_states[j] = 0;