|
CTWM
|
Go to the source code of this file.
Data Structures | |
| struct | OccupyWindow |
Variables | |
| int | fullOccupation |
| TwmWindow * | occupyWin |
| bool AddToClientsList | ( | char * | workspace, |
| char * | client ) |
Definition at line 1412 of file occupation.c.
References AddToList(), WorkSpace::clientlist, GetWorkspace(), WorkSpace::next, and Scr.
| void AddToWorkSpace | ( | char * | wname, |
| TwmWindow * | twm_win ) |
Definition at line 283 of file occupation.c.
References CanChangeOccupation(), ChangeOccupation(), GetWorkspace(), WorkSpace::number, and TwmWindow::occupation.
Referenced by f_addtoworkspace_impl(), HandleButtonRelease(), and HandleMapRequest().
| void ChangeOccupation | ( | TwmWindow * | tmp_win, |
| int | newoccupation ) |
Definition at line 1155 of file occupation.c.
References AddIconManager(), ChangeOccupation(), WorkSpaceWindow::currentwspc, DisplayWin(), dpy, EwmhSet_NET_WM_DESKTOP(), TwmWindow::frame, fullOccupation, GetPropertyFromMask(), TwmWindow::group, TwmWindow::istransient, len, mask_out_event(), TwmWindow::next, VirtualScreen::next, WorkSpace::next, WorkSpace::number, TwmWindow::occupation, OCCUPY, PlaceWindowInRegion(), RemoveIconManager(), RemoveWindowFromRegion(), restore_mask(), WorkSpace::save_focus, Scr, TwmWindow::transientfor, Vanish(), TwmWindow::vs, TwmWindow::w, WMapAddWindowToWorkspace(), WMapRemoveWindowFromWorkspace(), WMapWindowMayBeAdded(), and VirtualScreen::wsw.
Referenced by AddToWorkSpace(), ChangeOccupation(), EwmhClientMessage_NET_WM_DESKTOP(), HandlePropertyNotify(), MoveToNextWorkSpace(), MoveToPrevWorkSpace(), OccupyAll(), OccupyHandleButtonEvent(), RemoveFromWorkSpace(), ToggleOccupation(), WMgrAddToCurrentWorkSpaceAndWarp(), WMgrHandleButtonEvent(), WmgrRedoOccupation(), and WMgrRemoveFromCurrentWorkSpace().
| void CreateOccupyWindow | ( | void | ) |
Definition at line 594 of file occupation.c.
References AddWindow(), OccupyWindow::allworkspc, AWT_OCCUPY, ColorPair::back, BTN_IPT_CTX, OccupyWindow::cancel, cancel_string, OccupyWindow::columns, OccupyWindow::cp, WorkSpace::cp, dpy, everywhere_string, OccupyWindow::font, MyFont::font_set, GetColor(), GetShadeColors(), OccupyWindow::hspace, OccupyWindow::icon_name, OccupyWindow::lines, MAX, OccupyWindow::minheight, OccupyWindow::minwidth, OccupyWindow::name, WorkSpace::next, OccupyWindow::obuttonw, TwmWindow::occupation, occupyButtoncp, OccupyWindow::OK, ok_string, OccupyWindow::owidth, ResizeOccupyWindow(), Scr, SetMapStateProp(), ColorPair::shadc, ColorPair::shadd, OccupyWindow::twm_win, TwmWindow::vs, OccupyWindow::vspace, and OccupyWindow::w.
Referenced by ctwm_main().
| unsigned int GetMaskFromProperty | ( | unsigned char * | _prop, |
| unsigned long | len ) |
Definition at line 1524 of file occupation.c.
References fullOccupation, GetWorkspace(), len, mk_nullsep_string(), WorkSpace::number, and safe_strncpy().
Referenced by HandlePropertyNotify(), and SetupOccupation().
| int GetPropertyFromMask | ( | unsigned int | mask, |
| char ** | prop ) |
Definition at line 1571 of file occupation.c.
References fullOccupation, WorkSpace::label, len, MAXWORKSPACE, mk_nullsep_string(), WorkSpace::next, WorkSpace::number, and Scr.
Referenced by ChangeOccupation(), CreateWorkSpaceManager(), and SetupOccupation().
| void MoveToNextWorkSpace | ( | VirtualScreen * | vs, |
| TwmWindow * | twm_win ) |
Definition at line 356 of file occupation.c.
References CanChangeOccupation(), ChangeOccupation(), WorkSpaceWindow::currentwspc, WorkSpace::next, WorkSpace::number, TwmWindow::occupation, Scr, and VirtualScreen::wsw.
Referenced by f_movetonextworkspace_impl(), and MoveToNextWorkSpaceAndFollow().
| void MoveToNextWorkSpaceAndFollow | ( | VirtualScreen * | vs, |
| TwmWindow * | twm_win ) |
Definition at line 378 of file occupation.c.
References CanChangeOccupation(), GotoNextWorkSpace(), MoveToNextWorkSpace(), OtpRaise(), and WinWin.
Referenced by f_movetonextworkspaceandfollow_impl().
| void MoveToPrevWorkSpace | ( | VirtualScreen * | vs, |
| TwmWindow * | twm_win ) |
Definition at line 394 of file occupation.c.
References CanChangeOccupation(), ChangeOccupation(), WorkSpaceWindow::currentwspc, WorkSpace::next, WorkSpace::number, TwmWindow::occupation, Scr, and VirtualScreen::wsw.
Referenced by f_movetoprevworkspace_impl(), and MoveToPrevWorkSpaceAndFollow().
| void MoveToPrevWorkSpaceAndFollow | ( | VirtualScreen * | vs, |
| TwmWindow * | twm_win ) |
Definition at line 422 of file occupation.c.
References CanChangeOccupation(), GotoPrevWorkSpace(), MoveToPrevWorkSpace(), OtpRaise(), and WinWin.
Referenced by f_movetoprevworkspaceandfollow_impl().
| void Occupy | ( | TwmWindow * | twm_win | ) |
Definition at line 1073 of file occupation.c.
References CanChangeOccupation(), ConstrainByLayout(), dpy, TwmWindow::frame, TwmWindow::frame_bw, TwmWindow::frame_bw3D, TwmWindow::frame_x, TwmWindow::frame_y, OccupyWindow::height, JunkBW, JunkDepth, JunkMask, JunkRoot, JunkX, JunkY, TwmWindow::mapped, TwmWindow::occupation, occupyWin, OtpSetPriority(), TwmWindow::parent_vs, ReparentFrameAndIcon(), Scr, SetMapStateProp(), OccupyWindow::tmpOccupation, OccupyWindow::twm_win, TwmWindow::vs, OccupyWindow::w, OccupyWindow::width, WinWin, x, and y.
Referenced by f_occupy_impl().
| void OccupyAll | ( | TwmWindow * | twm_win | ) |
Definition at line 549 of file occupation.c.
References CanChangeOccupation(), ChangeOccupation(), fullOccupation, and Scr.
Referenced by f_occupyall_impl().
| void OccupyHandleButtonEvent | ( | XEvent * | event | ) |
Definition at line 985 of file occupation.c.
References OccupyWindow::allworkspc, ButtonPressed, OccupyWindow::cancel, ChangeOccupation(), WorkSpace::cp, dpy, TwmWindow::frame, fullOccupation, WorkSpace::label, TwmWindow::mapped, WorkSpace::next, WorkSpace::number, OccupyWindow::obuttonw, TwmWindow::occupation, occupyWin, OCCUPYWINDOW, off, OccupyWindow::OK, on, PaintWsButton(), Scr, OccupyWindow::tmpOccupation, and OccupyWindow::twm_win.
Referenced by HandleButtonPress().
| void PaintOccupyWindow | ( | void | ) |
Definition at line 954 of file occupation.c.
References OccupyWindow::allworkspc, OccupyWindow::cancel, cancel_string, OccupyWindow::cp, WorkSpace::cp, Draw3DBorder(), everywhere_string, OccupyWindow::height, WorkSpace::label, WorkSpace::next, WorkSpace::number, OccupyWindow::obuttonw, OCCUPYBUTTON, occupyButtoncp, OCCUPYWINDOW, off, OccupyWindow::OK, ok_string, on, PaintWsButton(), Scr, OccupyWindow::tmpOccupation, OccupyWindow::w, and OccupyWindow::width.
Referenced by HandleExpose().
| void RemoveFromWorkSpace | ( | char * | wname, |
| TwmWindow * | twm_win ) |
Definition at line 309 of file occupation.c.
References CanChangeOccupation(), ChangeOccupation(), GetWorkspace(), WorkSpace::number, and TwmWindow::occupation.
Referenced by f_removefromworkspace_impl(), and HandleButtonRelease().
| void ResizeOccupyWindow | ( | TwmWindow * | win | ) |
Definition at line 874 of file occupation.c.
References OccupyWindow::allworkspc, TwmWindow::attr, OccupyWindow::bheight, OccupyWindow::bwidth, OccupyWindow::cancel, dpy, OccupyWindow::height, OccupyWindow::hspace, MAX, OccupyWindow::minheight, OccupyWindow::minwidth, WorkSpace::next, OccupyWindow::obuttonw, OccupyWindow::OK, OccupyWindow::owidth, Scr, OccupyWindow::vspace, OccupyWindow::width, x, and y.
Referenced by CreateOccupyWindow(), SetupFrame(), and WMapSetupWindow().
| void SetupOccupation | ( | TwmWindow * | twm_win, |
| int | occupation_hint ) |
Definition at line 80 of file occupation.c.
References TwmWindow::class, WorkSpace::clientlist, WorkSpaceWindow::currentwspc, dpy, EwmhGetOccupation(), EwmhSet_NET_WM_DESKTOP(), fullOccupation, GetMaskFromProperty(), GetMaskFromResource(), GetPropertyFromMask(), GetTwmWindow(), GetWMState(), TwmWindow::group, TwmWindow::isiconmgr, TwmWindow::istransient, TwmWindow::iswspmgr, len, LookInList(), mask_out_event(), MIN, TwmWindow::name, VirtualScreen::next, WorkSpace::next, WorkSpace::number, TwmWindow::occupation, OCCUPY, TwmWindow::parent_vs, RestartPreviousState, restore_mask(), safe_strncpy(), Scr, SetMapStateProp(), table, TwmWindow::transientfor, visible(), TwmWindow::vs, TwmWindow::w, TwmWindow::wmhints, and VirtualScreen::wsw.
Referenced by AddWindow().
| void ToggleOccupation | ( | char * | wname, |
| TwmWindow * | twm_win ) |
Definition at line 332 of file occupation.c.
References CanChangeOccupation(), ChangeOccupation(), GetWorkspace(), WorkSpace::number, and TwmWindow::occupation.
Referenced by f_toggleoccupation_impl().
| void WMgrAddToCurrentWorkSpaceAndWarp | ( | VirtualScreen * | vs, |
| char * | winname ) |
Definition at line 491 of file occupation.c.
References ChangeOccupation(), TwmWindow::class, WorkSpaceWindow::currentwspc, DeIconify(), dpy, TwmWindow::mapped, match(), TwmWindow::name, TwmWindow::next, WorkSpace::number, TwmWindow::occupation, OCCUPY, Scr, WarpToWindow(), and VirtualScreen::wsw.
Referenced by f_warphere_impl().
| void WmgrRedoOccupation | ( | TwmWindow * | win | ) |
Definition at line 442 of file occupation.c.
References ChangeOccupation(), TwmWindow::class, WorkSpace::clientlist, fullOccupation, LookInList(), TwmWindow::name, WorkSpace::next, WorkSpace::number, and Scr.
Referenced by apply_window_name().
| void WMgrRemoveFromCurrentWorkSpace | ( | VirtualScreen * | vs, |
| TwmWindow * | win ) |
Definition at line 466 of file occupation.c.
References ChangeOccupation(), WorkSpaceWindow::currentwspc, WorkSpace::number, TwmWindow::occupation, OCCUPY, and VirtualScreen::wsw.
Referenced by f_vanish_impl().
|
extern |
Definition at line 43 of file occupation.c.
Referenced by AddWorkSpace(), ChangeOccupation(), CreateWorkSpaceManagerWindow(), EwmhClientMessage_NET_WM_DESKTOP(), EwmhGetOccupation(), EwmhSet_NET_WM_DESKTOP_ws(), GetMaskFromProperty(), GetMaskFromResource(), GetPropertyFromMask(), OccupyAll(), OccupyHandleButtonEvent(), SetupOccupation(), WMapWindowMayBeAdded(), and WmgrRedoOccupation().
|
extern |
Definition at line 51 of file occupation.c.
Referenced by CanChangeOccupation(), Occupy(), OccupyHandleButtonEvent(), and WMapRemoveWindow().