Lines Matching refs:priority
62 int pri_base; // Base priority
69 int priority;
212 int priority = 0;
251 if(nextpri < priority) {
255 priority, owl->below->twm_win->name,
260 priority = nextpri;
266 priority, (unsigned int)WindowOfOwl(owl), stack);
538 static OtpWinList *OwlRightBelow(int priority)
543 if(priority <= PRI(Scr->bottomOwl)) {
548 (owl2 != NULL) && (PRI(owl2) < priority);
554 assert(PRI(owl1) < priority);
555 assert((owl2 == NULL) || (PRI(owl2) >= priority));
564 int priority;
574 priority = PRI(owl) - (where == Above ? 0 : 1);
581 other_owl = OwlRightBelow(priority + 1);
621 * Shift transients of a window to a new [base] priority, preparatory to
624 static void TryToMoveTransientsOfTo(OtpWinList *owl, int priority, int where)
648 SetOwlPriority(other_owl, priority, where);
656 int priority;
663 * Switching is purely an adjustment to the base priority, so we
666 priority = OTP_MAX - owl->pri_base;
667 if(((where == Above) && (priority > owl->pri_base)) ||
668 ((where == Below) && (priority < owl->pri_base))) {
673 TryToMoveTransientsOfTo(owl, priority, where);
674 owl->pri_base = priority;
737 int priority;
748 priority = MAX(PRI(owl), OTP_MAX - PRI(owl));
751 (other_owl != NULL) && (PRI(other_owl) <= priority);
874 * enforce the priority by possibly restacking the window again.
897 int priority = OTP_ZERO + new_pri;
912 TryToMoveTransientsOfTo(owl, priority, where);
913 SetOwlPriority(owl, priority, where);
923 int priority = owl->pri_base + relpriority;
934 TryToMoveTransientsOfTo(owl, priority, where);
935 SetOwlPriority(owl, priority, where);
944 int priority = OTP_MAX - owl->pri_base;
955 where = priority < OTP_ZERO ? Below : Above;
956 TryToMoveTransientsOfTo(owl, priority, where);
957 SetOwlPriority(owl, priority, where);
1009 * Base our priority base off that other win. Don't use PRI_CP since
1060 * the priority.
1112 int priority)
1121 owl->pri_base = priority;
1142 prefs->switching, prefs->priority);
1209 /* If we set a priority or flags, we should stash away flags */
1236 /* windows in boxes *must* inherit priority from the box */
1309 void OtpScrSetZero(ScreenInfo *scr, WinType wintype, int priority)
1315 if(ABS(priority) > OTP_ZERO) {
1316 fprintf(stderr, "invalid OnTopPriority value: %d\n", priority);
1320 prefs->priority = priority + OTP_ZERO;
1324 name_list **OtpScrPriorityL(ScreenInfo *scr, WinType wintype, int priority)
1330 if(ABS(priority) > OTP_ZERO) {
1331 fprintf(stderr, "invalid OnTopPriority value: %d\n", priority);
1332 priority = 0;
1334 return &(prefs->priorityL[priority + OTP_ZERO]);
1347 pref->priority = OTP_ZERO;
1391 and enforces priority settings. */
1416 and enforces priority settings. */
1689 // from where the old priority was in the list turns out to be deeply
1756 // transients currently have the same effective priority. See also
1788 * Calculating effective priority. Take the base priority (what gets
1879 * Does the priority of a window depend on its focus state? External