Lines Matching refs:occupation
2 * Occupation handling bits
27 #include "occupation.h"
46 * The window whose occupation is currently being manipulated.
65 * First, funcs related to setting and changing a window's occupation.
72 * Setup the occupation of a TwmWindow. Called as part of the
88 twm_win->occupation = 1 << 0; /* occupy workspace #0 */
99 /*twm_win->occupation = twm_win->iswinbox ? fullOccupation : 0;*/
100 twm_win->occupation = 0;
105 twm_win->occupation |= 1 << ws->number;
111 twm_win->occupation = fullOccupation;
130 twm_win->occupation = GetMaskFromResource(twm_win, wrkSpcList);
146 twm_win->occupation = GetMaskFromProperty(prop, nitems);
154 if(twm_win->occupation == 0) {
155 twm_win->occupation = EwmhGetOccupation(twm_win);
162 return; /* someone tried to modify occupation of icon managers */
176 twm_win->occupation = t->occupation;
182 twm_win->occupation = t->occupation;
190 twm_win->occupation = occupation_hint;
194 if((twm_win->occupation & fullOccupation) == 0) {
195 twm_win->occupation = 1 << twm_win->vs->wsw->currentwspc->number;
199 * If the occupation would not show it in the current vscreen,
223 /* Set the property for the occupation */
235 /* Set the property for the occupation */
236 len = GetPropertyFromMask(twm_win->occupation, &wsstr);
296 if(twm_win->occupation & (1 << ws->number)) {
299 newoccupation = twm_win->occupation | (1 << ws->number);
322 newoccupation = twm_win->occupation & ~(1 << ws->number);
345 newoccupation = twm_win->occupation ^ (1 << ws->number);
370 newoccupation = (twm_win->occupation ^ (1 << wlist1->number))
414 newoccupation = (twm_win->occupation ^ (1 << wlist2->number))
437 * Set the occupation based on the window name. This is called if
480 newoccupation = win->occupation & ~(1 << ws->number);
533 newoccupation = tw->occupation | (1 << vs->wsw->currentwspc->number);
808 tmp_win->occupation = 0;
1041 occupyW->twm_win->occupation = 0;
1049 occupyW->twm_win->occupation = 0;
1088 occupyWindow->tmpOccupation = twm_win->occupation;
1098 occupy_twm->occupation = twm_win->occupation;
1149 * The actual meat of occupation-changing; [re-]set the occupation for
1151 * occupation, moves the window where it should be, etc. Should maybe be
1163 || (newoccupation == tmp_win->occupation)) {
1165 * occupation=0 we interpret as "leave it alone". == current,
1176 len = GetPropertyFromMask(tmp_win->occupation, &namelist);
1192 oldoccupation = tmp_win->occupation;
1200 * don't match the current occupation, so it can just be told "here's
1203 tmp_win->occupation = newoccupation & ~oldoccupation;
1205 tmp_win->occupation = newoccupation;
1215 * where the window has occupation, so that the window can be shown
1275 * Note that this whole block messes with the {new,old}occupation
1322 * If transients don't have their own occupation, find any transients
1330 ChangeOccupation(t, tmp_win->occupation);
1342 * occupation of a window (either due to attributes of it, or the state
1372 /* Don't change occupation of icon managers */
1380 * If transients don't have their own occupation, check
1444 * Turn a ctwm.workspace resource string into an occupation mask. n.b.;
1456 * This can set the occupation to a specific set of workspaces ("ws1
1508 return (mask | win->occupation);
1510 return (win->occupation & ~mask);
1520 * Turns a \0-separated buffer of workspace names into an occupation
1567 * Turns an occupation mask into a \0-separated buffer (not really a