Ignore:
Timestamp:
Jun 15, 2008, 5:13:41 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Put pty and prevpty in screen_list structure
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/neercs.h

    r2403 r2421  
    1616#include <stdint.h>
    1717#include <cucul.h>
     18
     19
     20#define CURRENTSCREEN screen_list->screen[screen_list->pty]
     21
    1822
    1923enum wm_types
     
    4549    long int total;
    4650    int bell;
     51    unsigned int scroll, s1, s2;
    4752    int pid;
     53
     54    int kill_time;
    4855
    4956    int x, y;
     
    6067    int help;
    6168
     69
     70    int pty, prevpty;
    6271    int count;
    6372    int width, height;
     
    7382void refresh_screens(cucul_canvas_t *cv,
    7483                     caca_display_t *dp,
    75                      struct screen_list *screen_list,
    76                      int pty);
    77 int update_screens_contents(struct screen_list* screen_list,
    78                              int *pty, int *prevpty);
     84                     struct screen_list *screen_list);
     85int update_screens_contents(struct screen_list* screen_list);
    7986
    8087/* Screens management */
     
    8693
    8794/* Window managers */
    88 void update_windows_props(cucul_canvas_t *cv, struct screen_list *screen_list, int pty);
    89 void update_windows_props_cards(cucul_canvas_t *cv, struct screen_list *screen_list, int pty);
    90 void update_windows_props_hsplit(cucul_canvas_t *cv, struct screen_list *screen_list, int pty);
    91 void update_windows_props_full(cucul_canvas_t *cv, struct screen_list *screen_list, int pty);
    92 void update_windows_props_vsplit(cucul_canvas_t *cv, struct screen_list *screen_list, int pty);
     95void update_windows_props(cucul_canvas_t *cv, struct screen_list *screen_list);
     96void update_windows_props_cards(cucul_canvas_t *cv, struct screen_list *screen_list);
     97void update_windows_props_hsplit(cucul_canvas_t *cv, struct screen_list *screen_list);
     98void update_windows_props_full(cucul_canvas_t *cv, struct screen_list *screen_list);
     99void update_windows_props_vsplit(cucul_canvas_t *cv, struct screen_list *screen_list);
    93100
    94101/* Effects and addons */
    95 void draw_thumbnails(cucul_canvas_t *cv, struct screen_list *screen_list, int pty);
    96 void draw_status(cucul_canvas_t *cv, struct screen_list *screen_list, int pty);
    97 void draw_help(cucul_canvas_t *cv, struct screen_list *screen_list, int pty);
     102void draw_thumbnails(cucul_canvas_t *cv, struct screen_list *screen_list);
     103void draw_status(cucul_canvas_t *cv, struct screen_list *screen_list);
     104void draw_help(cucul_canvas_t *cv, struct screen_list *screen_list);
    98105
    99106
Note: See TracChangeset for help on using the changeset viewer.