Ignore:
Timestamp:
Nov 22, 2009, 3:50:45 PM (11 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Removed WM_CUBE, now handled though WM_FULL
  • Added eyecandy configuration option, enabling cube, window collapsing
  • Fixed window collapsing bug which didn't set correct pty index
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/configuration.c

    r3999 r4000  
    3636int set_socket_dir(const char *argv, struct screen_list *screen_list);
    3737int set_delay(const char *argv, struct screen_list *screen_list);
     38int set_eyecandy(const char *argv, struct screen_list *screen_list);
    3839char*  get_window_manager(struct screen_list *screen_list);
    3940char*  get_cube_duration(struct screen_list *screen_list);
     
    4546char*  get_socket_dir(struct screen_list *screen_list);
    4647char*  get_delay(struct screen_list *screen_list);
    47 
     48char*  get_eyecandy(struct screen_list *screen_list);
    4849
    4950/* Options definition and associated function pointer */
    5051struct config_line config_option[] = {
    5152    {.name = "window_manager",.set = set_window_manager, .get = get_window_manager},
     53    {.name = "eyecandy",.set = set_eyecandy, .get = get_eyecandy},
    5254    {.name = "cube_duration",.set = set_cube_duration, .get = get_window_manager},
    5355    {.name = "thumbnails",.set = set_thumbnails, .get = get_window_manager},
     
    373375    else if (IS_OPTION("card"))
    374376        screen_list->wm_type = WM_CARD;
    375     else if (IS_OPTION("cube"))
    376         screen_list->wm_type = WM_CUBE;
    377377    else
    378378    {
     
    440440}
    441441
     442int set_eyecandy(const char *argv, struct screen_list *screen_list)
     443{
     444    if (IS_OPTION("true") || IS_OPTION("1"))
     445        screen_list->eyecandy = 1;
     446    else
     447        screen_list->eyecandy = 0;
     448    return 0;
     449}
     450
    442451int set_socket_dir(const char *argv, struct screen_list *screen_list)
    443452{
     
    452461        return 0;
    453462}
    454 
    455 
    456463
    457464char* get_window_manager(struct screen_list *screen_list)
     
    467474        case WM_HSPLIT:
    468475            return "hsplit";
    469         case WM_CUBE:
    470             return "cube";
    471476        default:
    472477            return "invalid";
     
    494499}
    495500
     501char*  get_eyecandy(struct screen_list *screen_list)
     502{
     503    if(screen_list->eyecandy) return "yes";
     504    return "no";
     505}
     506
    496507char*  get_screensaver_timeout(struct screen_list *screen_list)
    497508{
Note: See TracChangeset for help on using the changeset viewer.