|
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 ConfigureWorkSpaceManager(), CtwmGetVScreenMap(), WorkSpaceWindow::currentwspc, dpy, GetWorkspace(), WorkSpaceMgr::initialstate, VirtualScreen::next, WorkSpace::next, Scr, WorkSpaceWindow::state, ScreenInfo::vScreenList, and ScreenInfo::workSpaceMgr.
Referenced by ConfigureWorkSpaceManager(), and ctwm_main().
| void CreateWorkSpaceManager | ( | void | ) |
Definition at line 155 of file workspace_manager.c.
References ColorPair::back, WorkSpace::backcp, CreateWorkSpaceManager(), CreateWorkSpaceManagerWindow(), WorkSpaceWindow::currentwspc, dpy, GetPropertyFromMask(), GetShadeColors(), handCursor, WorkSpace::image, WorkSpaceWindow::mswl, NewFontCursor(), WorkSpace::number, Image::pixmap, Scr, useBackgroundInfo, and MapSubwindow::w.
Referenced by CreateWorkSpaceManager(), and ctwm_main().
| void InitWorkSpaceManagerContext | ( | void | ) |
Definition at line 72 of file workspace_manager.c.
References InitWorkSpaceManagerContext(), and MapWListContext.
Referenced by ctwm_main(), and InitWorkSpaceManagerContext().
| 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, PaintWorkSpaceManager(), PaintWorkSpaceManagerBorder(), PaintWsButton(), Scr, ButtonSubwindow::w, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by PaintAllDecoration(), PaintWorkSpaceManager(), and ResizeWorkSpaceManager().
| void WMapAddWindow | ( | TwmWindow * | win | ) |
Definition at line 2099 of file workspace_manager.c.
References WorkSpace::next, OCCUPY, Scr, WMapAddWindow(), WMapAddWindowToWorkspace(), and WMapWindowMayBeAdded().
Referenced by AddWindow(), and WMapAddWindow().
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, WMapAddWindowToWorkspace(), winList::x, and winList::y.
Referenced by ChangeOccupation(), WMapAddWindow(), and WMapAddWindowToWorkspace().
| void WMapDeIconify | ( | TwmWindow * | win | ) |
Definition at line 1718 of file workspace_manager.c.
References TwmWindow::vs, wmap_mapwin_backend(), and WMapDeIconify().
Referenced by ReMapOne(), and WMapDeIconify().
| 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, WMapIconify(), and VirtualScreen::wsw.
Referenced by Iconify(), UnmapTransients(), and WMapIconify().
| void WMapLower | ( | TwmWindow * | win | ) |
Definition at line 1864 of file workspace_manager.c.
References WMapLower(), and WMapRaiseLower().
Referenced by AutoLowerWindow(), f_lower_impl(), f_tinylower_impl(), and WMapLower().
| void WMapMapWindow | ( | TwmWindow * | win | ) |
Definition at line 1704 of file workspace_manager.c.
References wmap_mapwin_backend(), and WMapMapWindow().
Referenced by HandleMapRequest(), and WMapMapWindow().
| void WMapRaise | ( | TwmWindow * | win | ) |
Definition at line 1870 of file workspace_manager.c.
References WMapRaise(), and WMapRaiseLower().
Referenced by AutoRaiseWindow(), EndResize(), f_tinyraise_impl(), HandleButtonPress(), raise_handler(), WMapRaise(), and WMgrHandleButtonEvent().
| void WMapRaiseLower | ( | TwmWindow * | win | ) |
Definition at line 1852 of file workspace_manager.c.
References WorkSpace::next, OCCUPY, Scr, WMapRaiseLower(), and WMapRestack().
Referenced by f_raiselower_impl(), WMapLower(), WMapRaise(), and WMapRaiseLower().
| 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, WMapRedrawName(), WMapRedrawWindow(), and VirtualScreen::wsw.
Referenced by GotoWorkSpace(), wmap_mapwin_backend(), WMapRedrawName(), 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, WMapRemoveWindow(), and WMapRemoveWindowFromWorkspace().
Referenced by HandleDestroyNotify(), and WMapRemoveWindow().
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, WMapRemoveWindowFromWorkspace(), and VirtualScreen::wsw.
Referenced by ChangeOccupation(), WMapRemoveWindow(), and WMapRemoveWindowFromWorkspace().
| 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, MapSubwindow::wl, and WMapRestack().
Referenced by WMapRaiseLower(), WMapRestack(), 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, WMapSetupWindow(), VirtualScreen::wsw, and WorkSpaceWindow::wwidth.
Referenced by movewindow(), SetupFrame(), WMapSetupWindow(), 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(), WMapUpdateIconName(), and VirtualScreen::wsw.
Referenced by RedoIcon(), RedoIconName(), and WMapUpdateIconName().
| bool WMapWindowMayBeAdded | ( | TwmWindow * | win | ) |
Definition at line 2328 of file workspace_manager.c.
References fullOccupation, TwmWindow::isiconmgr, TwmWindow::iswspmgr, TwmWindow::occupation, Scr, and WMapWindowMayBeAdded().
Referenced by ChangeOccupation(), WMapAddWindow(), and WMapWindowMayBeAdded().
| 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(), WMgrHandleButtonEvent(), WMgrToggleState(), WMS_buttons, VirtualScreen::wsw, WorkSpaceWindow::wwidth, MapSubwindow::x, and MapSubwindow::y.
Referenced by HandleButtonPress(), and WMgrHandleButtonEvent().
| 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(), WMgrHandleExposeEvent(), WMS_buttons, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by HandleExpose(), and WMgrHandleExposeEvent().
| 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, WMgrHandleKeyPressEvent(), WMgrToggleState(), WMS_map, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by HandleKeyPress(), and WMgrHandleKeyPressEvent().
| void WMgrHandleKeyReleaseEvent | ( | VirtualScreen * | vs, |
| XEvent * | event ) |
Definition at line 822 of file workspace_manager.c.
References Scr, WMgrHandleKeyReleaseEvent(), and WMgrToggleState().
Referenced by HandleKeyRelease(), and WMgrHandleKeyReleaseEvent().
| 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, WMgrSetButtonsState(), WMS_buttons, and VirtualScreen::wsw.
Referenced by f_setbuttonsstate_impl(), WMgrSetButtonsState(), 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, WMgrSetMapState(), WMS_map, and VirtualScreen::wsw.
Referenced by f_setmapstate_impl(), WMgrSetMapState(), and WMgrToggleState().
| void WMgrToggleState | ( | VirtualScreen * | vs | ) |
Definition at line 763 of file workspace_manager.c.
References WorkSpaceWindow::state, WMgrSetButtonsState(), WMgrSetMapState(), WMgrToggleState(), WMS_buttons, and VirtualScreen::wsw.
Referenced by f_togglestate_impl(), WMgrHandleButtonEvent(), WMgrHandleKeyPressEvent(), WMgrHandleKeyReleaseEvent(), and WMgrToggleState().