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, WorkSpace::next, PlaceX, Scr, WorkSpaceWindow::state, ScreenInfo::vScreenList, and ScreenInfo::workSpaceMgr.
Referenced by ctwm_main().
Definition at line 155 of file workspace_manager.c.
References CreateWorkSpaceManagerWindow(), WorkSpaceWindow::currentwspc, dpy, GetPropertyFromMask(), GetShadeColors(), handCursor, len, WorkSpaceWindow::mswl, NewFontCursor(), PlaceX, Scr, and useBackgroundInfo.
Referenced by ctwm_main().
Definition at line 72 of file workspace_manager.c.
References MapWListContext, and PlaceX.
Referenced by ctwm_main().
void PaintWorkSpaceManager | ( | VirtualScreen * | vs | ) |
Definition at line 678 of file workspace_manager.c.
References WorkSpaceWindow::bswl, WorkSpaceWindow::currentwspc, off, on, PaintWorkSpaceManagerBorder(), PaintWsButton(), PlaceX, Scr, ButtonSubwindow::w, WSPCWINDOW, and VirtualScreen::wsw.
Referenced by PaintAllDecoration(), and ResizeWorkSpaceManager().
Definition at line 2099 of file workspace_manager.c.
References OCCUPY, PlaceX, 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, PlaceX, Scr, ScreenContext, TwmWindow::title, winList::twm_win, TwmContext, winList::w, winList::width, winList::wlist, winList::x, and winList::y.
Referenced by ChangeOccupation(), and WMapAddWindow().
Definition at line 1718 of file workspace_manager.c.
References TwmWindow::vs, and wmap_mapwin_backend().
Referenced by ReMapOne().
Definition at line 1735 of file workspace_manager.c.
References dpy, WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, PlaceX, Scr, winList::twm_win, TwmWindow::vs, winList::w, MapSubwindow::wl, and VirtualScreen::wsw.
Referenced by Iconify(), and UnmapTransients().
Definition at line 1864 of file workspace_manager.c.
References WMapRaiseLower().
Referenced by AutoLowerWindow(), f_lower_impl(), and f_tinylower_impl().
Definition at line 1704 of file workspace_manager.c.
References wmap_mapwin_backend().
Referenced by HandleMapRequest().
Definition at line 1870 of file workspace_manager.c.
References WMapRaiseLower().
Referenced by AutoRaiseWindow(), EndResize(), f_tinyraise_impl(), HandleButtonPress(), raise_handler(), and WMgrHandleButtonEvent().
Definition at line 1852 of file workspace_manager.c.
References OCCUPY, PlaceX, 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().
Definition at line 2224 of file workspace_manager.c.
References dpy, OCCUPY, occupyWin, PlaceX, Scr, and WMapRemoveWindowFromWorkspace().
Referenced by HandleDestroyNotify().
Definition at line 2259 of file workspace_manager.c.
References dpy, MapWListContext, WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, PlaceX, Scr, ScreenContext, TwmContext, MapSubwindow::wl, and VirtualScreen::wsw.
Referenced by ChangeOccupation(), and WMapRemoveWindow().
Definition at line 1884 of file workspace_manager.c.
References dpy, TwmWindow::frame, GetTwmWindow(), winList::next, OCCUPY, PlaceX, root, Scr, tracefile, winList::twm_win, and winList::w.
Referenced by WMapRaiseLower(), and WMgrHandleButtonEvent().
Definition at line 1762 of file workspace_manager.c.
References dpy, VirtualScreen::h, TwmWindow::isiconmgr, TwmWindow::iswspmgr, WorkSpaceWindow::mswl, VirtualScreen::next, PlaceX, ResizeOccupyWindow(), ResizeWorkSpaceManager(), Scr, TwmWindow::vs, VirtualScreen::w, WorkSpaceWindow::wheight, VirtualScreen::wsw, WorkSpaceWindow::wwidth, x, MapSubwindow::x, and y.
Referenced by movewindow(), SetupFrame(), and WMgrHandleButtonEvent().
Definition at line 1973 of file workspace_manager.c.
References WorkSpaceWindow::mswl, VirtualScreen::next, winList::next, PlaceX, Scr, winList::twm_win, MapSubwindow::wl, WMapRedrawName(), and VirtualScreen::wsw.
Referenced by RedoIcon(), and RedoIconName().
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, TwmWindow::icon_name, TwmWindow::istransient, JunkDepth, MapWListContext, MoveOutline(), WorkSpaceWindow::mswl, TwmWindow::occupation, OCCUPY, TwmWindow::OpaqueMove, OtpRaise(), PlaceX, Scr, SetupWindow(), WorkSpaceWindow::state, TwmWindow::title_height, winList::twm_win, Vanish(), VirtualScreen::w, MapSubwindow::w, ButtonSubwindow::w, WarpToWindow(), winList::width, WinWin, WMapRaise(), WMapRedrawName(), WMapRedrawWindow(), WMapRestack(), WMapSetupWindow(), WMgrToggleState(), WMS_buttons, and VirtualScreen::wsw.
Referenced by HandleButtonPress().
void WMgrHandleExposeEvent | ( | VirtualScreen * | vs, |
XEvent * | event ) |
Definition at line 716 of file workspace_manager.c.
References WorkSpaceWindow::bswl, WorkSpaceWindow::currentwspc, dpy, TwmWindow::mapped, MapWListContext, off, on, PaintWorkSpaceManagerBorder(), PaintWsButton(), PlaceX, 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, WorkSpaceWindow::currentwspc, off, on, PaintWsButton(), PlaceX, 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 PlaceX, 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, PlaceX, Scr, WorkSpaceWindow::state, MapSubwindow::w, ButtonSubwindow::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, PlaceX, Scr, WorkSpaceWindow::state, MapSubwindow::w, ButtonSubwindow::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().