|
CTWM
|
Go to the source code of this file.
| void ConfigureWorkSpaceManager | ( | ScreenInfo * | scr | ) |
Prep up structures for WSM windows in each VS.
Called (for each Screen) in startup after InitVirtualScreens() has setup the VS stuff (and after config file processing). This also retrieves info for each vs about which workspace is active, if available (from restarting ourself, etc).
XXX Passed param isn't quite complete, as we call some funcs that use global Scr...
Definition at line 91 of file workspace_manager.c.
References CtwmGetVScreenMap(), WorkSpaceWindow::currentwspc, dpy, GetWorkspace(), WorkSpaceMgr::initialstate, VirtualScreen::next, WorkSpace::next, Scr, WorkSpaceWindow::state, ScreenInfo::vScreenList, and ScreenInfo::workSpaceMgr.
Referenced by ctwm_main().
| void CreateWorkSpaceManager | ( | void | ) |
Definition at line 155 of file workspace_manager.c.
References ColorPair::back, WorkSpace::backcp, CreateWorkSpaceManagerWindow(), WorkSpaceWindow::currentwspc, dpy, GetPropertyFromMask(), GetShadeColors(), handCursor, WorkSpace::image, len, WorkSpaceWindow::mswl, NewFontCursor(), WorkSpace::number, Image::pixmap, Scr, useBackgroundInfo, and MapSubwindow::w.
Referenced by ctwm_main().
| void InitWorkSpaceManagerContext | ( | void | ) |
Definition at line 72 of file workspace_manager.c.
References MapWListContext.
Referenced by ctwm_main().
| void PaintWorkSpaceManager | ( | VirtualScreen * | vs | ) |
Definition at line 678 of file workspace_manager.c.
References WorkSpaceWindow::bswl, WorkSpace::cp, WorkSpaceWindow::currentwspc, WorkSpace::label, WorkSpace::next, WorkSpace::number, off, on, PaintWorkSpaceManagerBorder(), PaintWsButton(), Scr, ButtonSubwindow::w, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by PaintAllDecoration(), and ResizeWorkSpaceManager().
| void WMapAddWindow | ( | TwmWindow * | win | ) |
Definition at line 2099 of file workspace_manager.c.
References WorkSpace::next, OCCUPY, Scr, WMapAddWindowToWorkspace(), and WMapWindowMayBeAdded().
Referenced by AddWindow().
Definition at line 2123 of file workspace_manager.c.
References ColorPair::back, TwmWindow::class, winList::cp, dpy, ColorPair::fore, TwmWindow::frame_height, TwmWindow::frame_width, TwmWindow::frame_x, TwmWindow::frame_y, GetColorFromList(), GetShadeColors(), handCursor, winList::height, TwmWindow::mapped, MapWListContext, TwmWindow::name, winList::next, WorkSpace::number, Scr, ScreenContext, TwmWindow::title, winList::twm_win, TwmContext, MapSubwindow::w, winList::w, winList::width, MapSubwindow::wl, winList::wlist, winList::x, and winList::y.
Referenced by ChangeOccupation(), and WMapAddWindow().
| void WMapDeIconify | ( | TwmWindow * | win | ) |
Definition at line 1718 of file workspace_manager.c.
References TwmWindow::vs, and wmap_mapwin_backend().
Referenced by ReMapOne().
| void WMapIconify | ( | TwmWindow * | win | ) |
Definition at line 1735 of file workspace_manager.c.
References dpy, WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, WorkSpace::next, WorkSpace::number, Scr, winList::twm_win, TwmWindow::vs, winList::w, MapSubwindow::wl, and VirtualScreen::wsw.
Referenced by Iconify(), and UnmapTransients().
| void WMapLower | ( | TwmWindow * | win | ) |
Definition at line 1864 of file workspace_manager.c.
References WMapRaiseLower().
Referenced by AutoLowerWindow(), f_lower_impl(), and f_tinylower_impl().
| void WMapMapWindow | ( | TwmWindow * | win | ) |
Definition at line 1704 of file workspace_manager.c.
References wmap_mapwin_backend().
Referenced by HandleMapRequest().
| void WMapRaise | ( | TwmWindow * | win | ) |
Definition at line 1870 of file workspace_manager.c.
References WMapRaiseLower().
Referenced by AutoRaiseWindow(), EndResize(), f_tinyraise_impl(), HandleButtonPress(), raise_handler(), and WMgrHandleButtonEvent().
| void WMapRaiseLower | ( | TwmWindow * | win | ) |
Definition at line 1852 of file workspace_manager.c.
References WorkSpace::next, OCCUPY, Scr, and WMapRestack().
Referenced by f_raiselower_impl(), WMapLower(), and WMapRaise().
| void WMapRedrawName | ( | VirtualScreen * | vs, |
| WinList * | wl ) |
Definition at line 1997 of file workspace_manager.c.
References winList::cp, WorkSpaceWindow::currentwspc, winList::height, TwmWindow::icon_name, InvertColorPair(), Scr, winList::twm_win, winList::w, winList::width, winList::wlist, WMapRedrawWindow(), and VirtualScreen::wsw.
Referenced by GotoWorkSpace(), wmap_mapwin_backend(), WMapUpdateIconName(), WMgrHandleButtonEvent(), and WMgrHandleExposeEvent().
| void WMapRemoveWindow | ( | TwmWindow * | win | ) |
Definition at line 2224 of file workspace_manager.c.
References dpy, TwmWindow::frame, TwmWindow::mapped, WorkSpace::next, TwmWindow::occupation, OCCUPY, occupyWin, Scr, OccupyWindow::twm_win, and WMapRemoveWindowFromWorkspace().
Referenced by HandleDestroyNotify().
Definition at line 2259 of file workspace_manager.c.
References dpy, MapWListContext, WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, WorkSpace::number, Scr, ScreenContext, TwmContext, MapSubwindow::wl, and VirtualScreen::wsw.
Referenced by ChangeOccupation(), and WMapRemoveWindow().
| void WMapRestack | ( | WorkSpace * | ws | ) |
Definition at line 1884 of file workspace_manager.c.
References dpy, TwmWindow::frame, GetTwmWindow(), winList::next, WorkSpace::number, OCCUPY, root, Scr, tracefile, winList::twm_win, winList::w, and MapSubwindow::wl.
Referenced by WMapRaiseLower(), and WMgrHandleButtonEvent().
| void WMapSetupWindow | ( | TwmWindow * | win, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h ) |
Definition at line 1762 of file workspace_manager.c.
References dpy, VirtualScreen::h, TwmWindow::isiconmgr, TwmWindow::iswspmgr, WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, WorkSpace::next, WorkSpace::number, ResizeOccupyWindow(), ResizeWorkSpaceManager(), Scr, TwmWindow::vs, VirtualScreen::w, WorkSpaceWindow::wheight, MapSubwindow::wl, VirtualScreen::wsw, WorkSpaceWindow::wwidth, x, and y.
Referenced by movewindow(), SetupFrame(), and WMgrHandleButtonEvent().
| void WMapUpdateIconName | ( | TwmWindow * | win | ) |
Definition at line 1973 of file workspace_manager.c.
References WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, WorkSpace::next, WorkSpace::number, Scr, winList::twm_win, MapSubwindow::wl, WMapRedrawName(), and VirtualScreen::wsw.
Referenced by RedoIcon(), and RedoIconName().
| bool WMapWindowMayBeAdded | ( | TwmWindow * | win | ) |
Definition at line 2328 of file workspace_manager.c.
References fullOccupation, TwmWindow::isiconmgr, TwmWindow::iswspmgr, TwmWindow::occupation, and Scr.
Referenced by ChangeOccupation(), and WMapAddWindow().
| void WMgrHandleButtonEvent | ( | VirtualScreen * | vs, |
| XEvent * | event ) |
Definition at line 949 of file workspace_manager.c.
References ColorPair::back, WorkSpaceWindow::bswl, ChangeOccupation(), cont, winList::cp, WorkSpaceWindow::currentwspc, DispatchEvent(), DisplayWin(), dpy, Event, TwmWindow::frame, TwmWindow::frame_bw, TwmWindow::frame_bw3D, TwmWindow::frame_height, TwmWindow::frame_width, TwmWindow::frame_x, TwmWindow::frame_y, GotoWorkSpace(), VirtualScreen::h, winList::height, WorkSpaceWindow::height, TwmWindow::icon_name, TwmWindow::istransient, JunkDepth, MapWListContext, MoveOutline(), WorkSpaceWindow::mswl, WorkSpace::next, WorkSpace::number, TwmWindow::occupation, OCCUPY, TwmWindow::OpaqueMove, OtpRaise(), Scr, SetupWindow(), WorkSpaceWindow::state, TwmWindow::title_height, winList::twm_win, Vanish(), ButtonSubwindow::w, MapSubwindow::w, VirtualScreen::w, WorkSpaceWindow::w, WarpToWindow(), WorkSpaceWindow::wheight, winList::width, WinWin, WMapRaise(), WMapRedrawName(), WMapRedrawWindow(), WMapRestack(), WMapSetupWindow(), WMgrToggleState(), WMS_buttons, VirtualScreen::wsw, WorkSpaceWindow::wwidth, MapSubwindow::x, x, MapSubwindow::y, and y.
Referenced by HandleButtonPress().
| void WMgrHandleExposeEvent | ( | VirtualScreen * | vs, |
| XEvent * | event ) |
Definition at line 716 of file workspace_manager.c.
References WorkSpaceWindow::bswl, WorkSpace::cp, WorkSpaceWindow::currentwspc, dpy, WorkSpace::label, TwmWindow::mapped, MapWListContext, WorkSpace::next, WorkSpace::number, off, on, PaintWorkSpaceManagerBorder(), PaintWsButton(), Scr, WorkSpaceWindow::state, winList::twm_win, ButtonSubwindow::w, WMapRedrawName(), WMS_buttons, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by HandleExpose().
| void WMgrHandleKeyPressEvent | ( | VirtualScreen * | vs, |
| XEvent * | event ) |
Definition at line 840 of file workspace_manager.c.
References WorkSpaceWindow::bswl, WorkSpace::cp, WorkSpaceWindow::currentwspc, WorkSpace::label, WorkSpace::next, WorkSpace::number, off, on, PaintWsButton(), Scr, WorkSpaceWindow::state, ButtonSubwindow::w, WMgrToggleState(), WMS_map, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by HandleKeyPress().
| void WMgrHandleKeyReleaseEvent | ( | VirtualScreen * | vs, |
| XEvent * | event ) |
Definition at line 822 of file workspace_manager.c.
References Scr, and WMgrToggleState().
Referenced by HandleKeyRelease().
| void WMgrSetButtonsState | ( | VirtualScreen * | vs | ) |
Definition at line 790 of file workspace_manager.c.
References WorkSpaceWindow::bswl, dpy, WorkSpaceWindow::mswl, WorkSpace::next, WorkSpace::number, Scr, WorkSpaceWindow::state, ButtonSubwindow::w, MapSubwindow::w, WMS_buttons, and VirtualScreen::wsw.
Referenced by f_setbuttonsstate_impl(), and WMgrToggleState().
| void WMgrSetMapState | ( | VirtualScreen * | vs | ) |
Definition at line 774 of file workspace_manager.c.
References WorkSpaceWindow::bswl, dpy, MaybeAnimate, WorkSpaceWindow::mswl, WorkSpace::next, WorkSpace::number, Scr, WorkSpaceWindow::state, ButtonSubwindow::w, MapSubwindow::w, WMS_map, and VirtualScreen::wsw.
Referenced by f_setmapstate_impl(), and WMgrToggleState().
| void WMgrToggleState | ( | VirtualScreen * | vs | ) |
Definition at line 763 of file workspace_manager.c.
References WorkSpaceWindow::state, WMgrSetButtonsState(), WMgrSetMapState(), WMS_buttons, and VirtualScreen::wsw.
Referenced by f_togglestate_impl(), WMgrHandleButtonEvent(), WMgrHandleKeyPressEvent(), and WMgrHandleKeyReleaseEvent().