|
CTWM
|
#include "ctwm.h"#include <stdio.h>#include "animate.h"#include "colormaps.h"#include "drawing.h"#include "events.h"#include "iconmgr.h"#include "image.h"#include "otp.h"#include "screen.h"#include "win_decorations.h"#include "win_iconify.h"#include "win_ops.h"#include "win_utils.h"Go to the source code of this file.
Macros | |
| #define | DRAWIT() |
Functions | |
| void | SetFocusVisualAttributes (TwmWindow *tmp_win, bool focus) |
| void | SetFocus (TwmWindow *tmp_win, Time tim) |
| void | FocusOnRoot (void) |
| void | AutoSqueeze (TwmWindow *tmp_win) |
| void | Squeeze (TwmWindow *tmp_win) |
| void | MoveOutline (Window root, int x, int y, int width, int height, int bw, int th) |
| #define DRAWIT | ( | ) |
Referenced by MoveOutline().
| void AutoSqueeze | ( | TwmWindow * | tmp_win | ) |
Definition at line 205 of file win_ops.c.
References TwmWindow::isiconmgr, OtpRaise(), Scr, Squeeze(), TwmWindow::squeezed, and WinWin.
Referenced by AddWindow(), HandleFocusIn(), HandleFocusOut(), and SetFocus().
| void FocusOnRoot | ( | void | ) |
Definition at line 189 of file win_ops.c.
References EventTime, InstallColormaps(), Scr, and SetFocus().
Referenced by f_focus_impl(), f_unfocus_impl(), and HandleDestroyNotify().
| void MoveOutline | ( | Window | root, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| int | bw, | ||
| int | th ) |
Definition at line 317 of file win_ops.c.
References dpy, DRAWIT, root, Scr, x, and y.
Referenced by AddWindow(), DoResize(), EndResize(), HandleButtonPress(), HandleButtonRelease(), MenuDoResize(), MenuEndResize(), MenuStartResize(), movewindow(), StartResize(), and WMgrHandleButtonEvent().
| void SetFocus | ( | TwmWindow * | tmp_win, |
| Time | tim ) |
Definition at line 128 of file win_ops.c.
References AutoSqueeze(), TwmWindow::AutoSqueeze, dpy, EwmhSet_NET_ACTIVE_WINDOW(), OtpFocusWindow(), OtpIsFocusDependent(), OtpUnfocusWindow(), Scr, SetFocusVisualAttributes(), TwmWindow::squeezed, and TwmWindow::w.
Referenced by ctwm_main(), EwmhClientMessage_NET_ACTIVE_WINDOW(), f_focus_impl(), FocusOnRoot(), HandleButtonPress(), HandleEnterNotify(), HandleLeaveNotify(), HandleMapRequest(), Iconify(), RestoreForShutdown(), set_last_window(), UnmapTransients(), and WarpToWindow().
| void SetFocusVisualAttributes | ( | TwmWindow * | tmp_win, |
| bool | focus ) |
Definition at line 30 of file win_ops.c.
References ActiveIconManager(), ColorPair::back, TwmWindow::borderC, dpy, Draw3DBorder(), TwmWindow::frame, TwmWindow::gray, TwmWindow::hasfocusvisible, TwmWindow::highlight, TwmWindow::hilite_wl, TwmWindow::hilite_wr, TwmWindow::HiliteImage, TwmWindow::iconmanagerlist, TwmWindow::lolite_wl, TwmWindow::lolite_wr, MaybeAnimate, Image::next, NotActiveIconManager(), off, on, PaintBorders(), Scr, TwmWindow::title, TwmWindow::title_height, TwmWindow::title_w, and TwmWindow::title_width.
Referenced by AddWindow(), GotoWorkSpace(), HandleFocusIn(), HandleFocusOut(), and SetFocus().
| void Squeeze | ( | TwmWindow * | tmp_win | ) |
Definition at line 223 of file win_ops.c.
References TwmWindow::actual_frame_height, TwmWindow::actual_frame_width, TwmWindow::actual_frame_x, TwmWindow::actual_frame_y, TwmWindow::AlwaysSqueezeToGravity, dpy, EWMH_STATE_SHADED, EwmhSet_NET_WM_STATE(), TwmWindow::frame_bw, TwmWindow::frame_bw3D, TwmWindow::frame_height, TwmWindow::frame_width, TwmWindow::frame_x, TwmWindow::frame_y, TwmWindow::hints, TwmWindow::isicon, mask_out_event(), ReMapTransients(), restore_mask(), Scr, SetupWindow(), TwmWindow::squeeze_info, TwmWindow::squeezed, TwmWindow::title_height, TwmWindow::title_width, TwmWindow::title_x, UnmapTransients(), and TwmWindow::w.
Referenced by AutoSqueeze(), ctwm_main(), EwmhClientMessage_NET_WM_STATEchange(), f_raiseorsqueeze_impl(), f_squeeze_impl(), f_unsqueeze_impl(), HandleMapRequest(), and RestoreWinConfig().