Changeset 03ca005 for popexec.c


Ignore:
Timestamp:
Sep 18, 2010, 5:07:39 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
61c1f19
Parents:
b3b1b05
git-author:
David Benjamin <davidben@mit.edu> (08/01/10 13:50:19)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:39)
Message:
Create a new owl_popwin every time instead of rewiring the old one

Constantly rewiring things is weird.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popexec.c

    r4cf7b1b r03ca005  
    1717  pid_t pid;
    1818
     19  if (owl_global_get_popwin(&g)) {
     20    owl_function_error("Popwin already in use.");
     21    return NULL;
     22  }
     23
    1924  pe = owl_malloc(sizeof(owl_popexec));
    2025  if (!pe) return NULL;
     
    2328  pe->refcount=0;
    2429
    25   pw=owl_global_get_popwin(&g);
    2630  pe->vwin=v=owl_global_get_viewwin(&g);
     31  pw = owl_popwin_new();
     32  owl_global_set_popwin(&g, pw);
     33  owl_popwin_up(pw);
    2734
    28   if (owl_popwin_up(pw) != 0) {
    29     owl_function_error("Popwin already in use.");
    30     return NULL;
    31   }
    3235  owl_global_push_context(&g, OWL_CTX_POPLESS, v, "popless", NULL);
    3336  owl_viewwin_init_text(v, owl_popwin_get_content(pw), "");
Note: See TracChangeset for help on using the changeset viewer.