CTWM
|
Go to the source code of this file.
[Re]set and apply changes to a window's icon name.
This is called after we've received a new WM_ICON_NAME (or other name-setting) property, to update our titlebars, icon managers, etc.
Definition at line 1349 of file win_utils.c.
References AutoPopupMaybe(), RedoIcon(), set_window_icon_name(), and Tmp_win.
Referenced by apply_window_name(), EwmhHandlePropertyNotify(), and HandlePropertyNotify().
[Re]set and apply changes to a window's name.
This is called after we've received a new WM_NAME (or other name-setting) property, to update our titlebars, icon managers, etc.
Definition at line 1187 of file win_utils.c.
References apply_window_icon_name(), AutoPopupMaybe(), ColorPair::back, TwmWindow::border_tile, TwmWindow::borderC, TwmWindow::class, dpy, ColorPair::fore, TwmWindow::frame_height, TwmWindow::frame_width, TwmWindow::frame_x, TwmWindow::frame_y, GetColorFromList(), GetShadeColors(), TwmWindow::_names::icon_set, TwmWindow::name, TwmWindow::name_width, TwmWindow::nameChanged, TwmWindow::names, OtpRecomputePrefs(), PlaceX, Scr, set_window_name(), SetupWindow(), TwmWindow::title, TwmWindow::title_w, and WmgrRedoOccupation().
Referenced by EwmhHandlePropertyNotify(), and HandlePropertyNotify().
Definition at line 825 of file win_utils.c.
References ConstrainByBorders1(), dpy, and PlaceX.
Referenced by AddWindow(), HandleButtonRelease(), movewindow(), and TryToPush_be().
Definition at line 818 of file win_utils.c.
References ConstrainByLayout(), and Scr.
Referenced by ConstrainByBorders(), and MoveMenu().
bool ConstrainByLayout | ( | RLayout * | layout, |
int | move_off_res, | ||
int * | left, | ||
int | width, | ||
int * | top, | ||
int | height ) |
Definition at line 760 of file win_utils.c.
References PlaceX, RAreaNew(), RLayoutFindBottomEdge(), RLayoutFindLeftEdge(), RLayoutFindRightEdge(), RLayoutFindTopEdge(), RArea::x, and RArea::y.
Referenced by ConstrainByBorders1(), Occupy(), and PopUpMenu().
Definition at line 466 of file win_utils.c.
References dpy, Draw3DBorder(), FB, off, PlaceX, Scr, SIZE_HINDENT, SIZE_VINDENT, x, and y.
Referenced by AddWindow(), and movewindow().
Definition at line 108 of file win_utils.c.
References DoesWmDeleteWindow, DoesWmSaveYourself, DoesWmTakeFocus, dpy, and PlaceX.
Referenced by AddWindow(), and HandlePropertyNotify().
Definition at line 327 of file win_utils.c.
References NoName, and PlaceX.
Referenced by EwmhHandlePropertyNotify(), HandleDestroyNotify(), and HandlePropertyNotify().
Definition at line 149 of file win_utils.c.
Referenced by AddWindow(), HandleConfigureRequest(), and RestoreWinConfig().
Definition at line 190 of file win_utils.c.
References dpy, PlaceX, and TwmContext.
Referenced by AddWindow(), CanChangeOccupation(), DeIconify(), DispatchEvent(), DispatchEvent2(), EndResize(), EwmhClientMessage_NET_ACTIVE_WINDOW(), EwmhClientMessage_NET_CLOSE_WINDOW(), EwmhClientMessage_NET_WM_DESKTOP(), EwmhClientMessage_NET_WM_MOVERESIZE(), EwmhClientMessage_NET_WM_STATE(), HandleButtonPress(), HandleButtonRelease(), HandleCirculateNotify(), HandleConfigureRequest(), HandleKeyPress(), HandleMapRequest(), HandleMotionNotify(), HandleUnmapNotify(), Iconify(), munge_wmhints(), OwlEffectivePriority(), OwlPrettyPrint(), SetupOccupation(), WarpAlongRing(), and WMapRestack().
Definition at line 41 of file win_utils.c.
References dpy, PlaceX, and Scr.
Referenced by AddWindow(), and HandlePropertyNotify().
Definition at line 222 of file win_utils.c.
References dpy, PlaceX, ProgramName, and Scr.
Referenced by AddWindow(), EwmhHandlePropertyNotify(), and HandlePropertyNotify().
Definition at line 429 of file win_utils.c.
Referenced by HandleMapRequest(), and SetupOccupation().
Definition at line 366 of file win_utils.c.
References dpy, mask_out_event_mask(), and PlaceX.
Referenced by ChangeOccupation(), DisplayWinUnchecked(), GotoWorkSpace(), Iconify(), SetupOccupation(), Squeeze(), and Vanish().
Definition at line 389 of file win_utils.c.
Referenced by Iconify(), mask_out_event(), and UnmapTransients().
Definition at line 495 of file win_utils.c.
References dpy, PlaceX, RLayoutGetAreaAtXY(), Scr, x, and y.
Referenced by AddWindow(), MenuStartResize(), movewindow(), and StartResize().
Perform whatever adaptations of WM_HINTS info we do.
Most of these relate to focus, but we also fiddle with group membership.
Definition at line 1059 of file win_utils.c.
References GetTwmWindow(), TwmWindow::group, IsInList(), PlaceX, Scr, and TwmWindow::w.
Referenced by AddWindow(), and HandlePropertyNotify().
Definition at line 399 of file win_utils.c.
Referenced by ChangeOccupation(), DisplayWinUnchecked(), GotoWorkSpace(), Iconify(), SetupOccupation(), Squeeze(), UnmapTransients(), and Vanish().
Definition at line 996 of file win_utils.c.
Referenced by Animate(), f_saveyourself_impl(), SendDeleteWindowMessage(), and SendTakeFocusMessage().
[Re]set a window's icon name.
As with the window name version in set_window_name(), this is mostly separate so the AddWindow() process can call it.
Definition at line 1288 of file win_utils.c.
References dpy, TwmWindow::icon_name, TwmWindow::_names::icon_set, TwmWindow::name, TwmWindow::names, PlaceX, TRY, TwmWindow::w, and TwmWindow::_names::wm_icon_name.
Referenced by AddWindow(), and apply_window_icon_name().
[Re]set a window's name.
This goes over the available naming sources for the window and points the TwmWindow::name at the appropriate one. It may also set a property to signal other EWMH-aware clients when we're naming it a way they can't see themselves.
Definition at line 1126 of file win_utils.c.
References dpy, TwmWindow::name, TwmWindow::names, NoName, PlaceX, TRY, TwmWindow::w, and TwmWindow::_names::wm_name.
Referenced by AddWindow(), and apply_window_name().
Definition at line 415 of file win_utils.c.
Referenced by AddIconManager(), CreateIconManagers(), CreateOccupyWindow(), CreateWorkSpaceManagerWindow(), ctwm_main(), DisplayWinUnchecked(), f_showiconmgr_impl(), HandleMapRequest(), HandleUnmapNotify(), HideIconManager(), Iconify(), Occupy(), ReMapOne(), SetupOccupation(), UnmapTransients(), and Vanish().
Definition at line 705 of file win_utils.c.
References PlaceX, Scr, x, and y.
Referenced by AddWindow(), HandleButtonRelease(), and movewindow().
Definition at line 560 of file win_utils.c.
References _tryToPack(), _tryToPackVsEachMonitor(), PlaceX, RAreaListForeach(), RAreaNew(), Scr, x, and y.
Referenced by AddWindow(), HandleButtonRelease(), movewindow(), and TryToPush_be().
Definition at line 617 of file win_utils.c.
References PD_ANY, PlaceX, TryToPush_be(), x, and y.
Referenced by HandleButtonRelease(), and movewindow().
Definition at line 341 of file win_utils.c.
References PlaceX.
Referenced by AddIconManager(), AddWindow(), Animate(), CreateIconWindow(), f_showiconmgr_impl(), FindConstraint(), findWindowBox(), Iconify(), PaintAllDecoration(), RedoIcon(), RedoIconName(), RestoreWinConfig(), SetupFrame(), SetupOccupation(), WarpAlongRing(), and WarpToWindow().
Definition at line 883 of file win_utils.c.
References AutoRaiseWindow(), dpy, EventTime, GotoWorkSpace(), WorkSpace::next, OCCUPY, PlaceX, Scr, SetFocus(), visible(), x, and y.
Referenced by DeIconify(), EwmhClientMessage_NET_ACTIVE_WINDOW(), f_warpto_impl(), f_winwarp_impl(), GotoWorkSpace(), WarpAlongRing(), WMgrAddToCurrentWorkSpaceAndWarp(), and WMgrHandleButtonEvent().