Lines Matching refs:Scr

93 ScreenInfo *Scr = NULL;         /* the cur and prev screens */
425 Scr = ScreenList[scrnum] = InitScreenInfo(scrnum, croot,
427 if(Scr == NULL) {
436 Scr->ShowWelcomeWindow = CLarg.ShowWelcomeWindow;
446 Scr->Layout = XrandrNewLayout(dpy, Scr->XineramaRoot);
449 if(Scr->Layout == NULL) {
455 fs = RAreaNewStatic(Scr->rootx, Scr->rooty, Scr->rootw, Scr->rooth);
457 Scr->Layout = RLayoutNew(fsl);
461 RLayoutPrint(Scr->Layout);
463 if(RLayoutNumMonitors(Scr->Layout) < 1) {
472 Scr->d_depth = DefaultDepth(dpy, scrnum);
473 Scr->d_visual = DefaultVisual(dpy, scrnum);
474 Scr->RealRoot = RootWindow(dpy, scrnum);
478 Scr->mm_w = tscr->mwidth;
479 Scr->mm_h = tscr->mheight;
484 Scr->d_visual = calloc(1, sizeof(Visual));
485 Scr->d_visual->bits_per_rgb = 8;
486 Scr->d_visual->class = TrueColor;
491 Scr->XORvalue = (((unsigned long) 1) << Scr->d_depth) - 1;
497 Scr->CaptiveRoot = croot;
498 Scr->captivename = AddToCaptiveList(CLarg.captivename);
499 if(Scr->captivename) {
501 Scr->captivename, Scr->captivename,
513 Scr->RootColormaps.number_cwins = 1;
514 Scr->RootColormaps.cwins = malloc(sizeof(ColormapWindow *));
515 Scr->RootColormaps.cwins[0] = CreateColormapWindow(Scr->Root, true,
517 Scr->RootColormaps.cwins[0]->visibility = VisibilityPartiallyObscured;
520 Scr->cmapInfo.cmaps = NULL;
522 Scr->cmapInfo.maxCmaps = MaxCmapsOfScreen(ScreenOfDisplay(dpy,
523 Scr->screen));
525 Scr->cmapInfo.root_pushes = 0;
526 InstallColormaps(0, &Scr->RootColormaps);
529 Scr->StdCmapInfo.head = Scr->StdCmapInfo.tail
530 = Scr->StdCmapInfo.mru = NULL;
531 Scr->StdCmapInfo.mruindex = 0;
540 Scr->Monochrome = MONOCHROME;
543 Scr->Monochrome = COLOR;
549 GetColor(Scr->Monochrome, &(Scr->Black), "black");
550 GetColor(Scr->Monochrome, &(Scr->White), "white");
552 Scr->MenuShadowColor = Scr->Black;
553 Scr->IconBorderColor = Scr->Black;
554 Scr->IconManagerHighlight = Scr->Black;
556 #define SETFB(fld) Scr->fld.fore = Scr->Black; Scr->fld.back = Scr->White;
593 if(dpy && takeover && Scr->ShowWelcomeWindow
626 // through parsing, and then inspect Scr and the like.
642 if(takeover_screen(Scr) != true) {
656 if(Scr->ShowWelcomeWindow && !screenmasked) {
667 if(Scr->ClickToFocus) {
668 Scr->FocusRoot = false;
669 Scr->TitleFocus = false;
672 if(Scr->use3Dborders) {
673 Scr->ClientBorderWidth = false;
679 Scr->BorderedLayout = RLayoutCopyCropped(Scr->Layout,
680 Scr->BorderLeft, Scr->BorderRight,
681 Scr->BorderTop, Scr->BorderBottom);
682 if(Scr->BorderedLayout == NULL) {
683 Scr->BorderedLayout = Scr->Layout; // nothing to crop
685 else if(Scr->BorderedLayout->monitors->len == 0) {
692 RLayoutPrint(Scr->BorderedLayout);
702 InitVirtualScreens(Scr);
705 EwmhInitVirtualRoots(Scr);
711 ConfigureWorkSpaceManager(Scr);
721 #define SETDEF(fld, num) if(Scr->fld == -100) { Scr->fld = num; }
722 if(Scr->use3Dtitles) {
738 if(! Scr->use3Dtitles) {
739 Scr->TitleShadowDepth = 0;
740 Scr->TitleButtonShadowDepth = 0;
742 if(! Scr->use3Dborders) {
743 Scr->BorderShadowDepth = 0;
745 if(! Scr->use3Dmenus) {
746 Scr->MenuShadowDepth = 0;
748 if(! Scr->use3Diconmanagers) {
749 Scr->IconManagerShadowDepth = 0;
751 if(! Scr->use3Dborders) {
752 Scr->ThreeDBorderWidth = 0;
756 if(!Scr->BeNiceToColormap) {
758 GetShadeColors(&Scr->DefaultC);
761 if(Scr->use3Dtitles) {
762 GetShadeColors(&Scr->TitleC);
764 if(Scr->use3Dmenus) {
765 GetShadeColors(&Scr->MenuC);
767 if(Scr->use3Dmenus) {
768 GetShadeColors(&Scr->MenuTitleC);
770 if(Scr->use3Dborders) {
771 GetShadeColors(&Scr->BorderColorC);
776 for(IconRegion *ir = Scr->FirstRegion; ir; ir = ir->next) {
778 ir->TitleJustification = Scr->IconJustification;
781 ir->Justification = Scr->IconRegionJustification;
784 ir->Alignement = Scr->IconRegionAlignement;
792 #define DEFCURSOR(name, val) if(!Scr->name) NewFontCursor(&Scr->name, val)
817 if(!Scr->HaveFonts) {
818 CreateFonts(Scr);
823 Scr->TitleBarFont.y += Scr->FramePadding;
824 Scr->TitleHeight = Scr->TitleBarFont.height + Scr->FramePadding * 2;
825 if(Scr->use3Dtitles) {
826 Scr->TitleHeight += 2 * Scr->TitleShadowDepth;
829 if(!(Scr->TitleHeight & 1)) {
830 Scr->TitleHeight++;
839 // Stash up a ref to our Scr on the root, so we can find the
840 // right Scr for events etc.
841 XSaveContext(dpy, Scr->Root, ScreenContext, (XPointer) Scr);
890 EwmhInitScreenLate(Scr);
901 XQueryTree(dpy, Scr->Root, &croot, &parent, &children, &nchildren);
948 if(Scr->ShowWorkspaceManager && Scr->workSpaceManagerActive) {
950 if(Scr->WindowMask) {
951 XRaiseWindow(dpy, Scr->WindowMask);
953 for(vs = Scr->vScreenList; vs != NULL; vs = vs->next) {
974 attributes.border_pixel = Scr->DefaultC.fore;
975 attributes.background_pixel = Scr->DefaultC.back;
980 Scr->InfoWindow.win =
981 XCreateWindow(dpy, Scr->Root, 0, 0,
1003 RArea area = RLayoutGetAreaIndex(Scr->Layout, 0);
1009 XmbTextExtents(Scr->SizeFont.font_set,
1012 Scr->SizeStringWidth = logical_rect.width;
1016 if(Scr->SaveUnder) {
1021 Scr->SizeWindow = XCreateWindow(dpy, Scr->Root,
1023 Scr->SizeStringWidth,
1024 (Scr->SizeFont.height +
1033 Scr->ShapeWindow = XCreateSimpleWindow(dpy, Scr->Root, 0, 0,
1034 Scr->rootw, Scr->rooth, 0, 0, 0);
1038 if(Scr->ShowWelcomeWindow) {
1044 Scr->FirstTime = false;
1124 // Poison the global Scr to protect against typos
1125 #define Scr StupidProgrammer
1359 #undef Scr