本文介绍的命令用于控制窗口的状态。

Close

如果窗口接受删除窗口协议,则会向窗口发送一条消息,要求它正常删除自身。如果窗口不理解删除窗口协议,那么窗口将像Destroy命令一样被销毁。

注意:如果窗口接受删除窗口协议,但没有自行关闭,则不会删除该窗口。

Destroy

销毁应用程序窗口,通常会导致应用程序崩溃。

Delete

向窗口发送消息,要求它自行删除,经常导致应用程序退出。

Iconify [bool]

如果窗口尚未图标化,则将其标记为图标化;如果窗口已经图标化,则将其取消标记。可选参数bool是一个布尔参数。“True”表示只允许图标化,而“False”表示禁止图标化。使用“toggle”在图标化和非图标化状态之间切换。

有许多样式选项会影响图标的外观和行为(例如StickyIcon,NoIcon)。

为了向后兼容,可选参数bool也可以是表示“True”的正数,或者是表示“False”的负数。 请注意,此语法已过时,将来将被删除。

Maximize [flags] [bool|forget] [horizontal[p]] [vertical[p]]

Without its optional arguments (or if the bool bit has the value "toggle") Maximize causes the window to alternately switch from a full-screen size to its normal size. To force a window into maximized (normal) state you can use a "True" or "False" value for the bool argument.
With just the parameter "forget" a maximized window reverts back into normal state but keeps its current maximized size. This can be useful in conjunction with the commands ResizeMaximize and ResizeMoveMaximize. If the window is not maximized, nothing happens.
With the optional arguments horizontal and vertical, which are expressed as percentage of a full screen, the user can control the new size of the window. An optional suffix 'p' can be used to indicate pixels instead of percents of the screen size. If horizontal is greater than 0 then the horizontal dimension of the window is set to horizontal*screen_width/100. If the value is smaller than 0 the size is subtracted from the screen width, i.e. -25 is the same as 75. If horizontal is "grow", it is maximized to curren available space until finding any obstacle. The vertical resizing is similar. If both horizontal and vertical values are "grow", it expands vertically first, then horizontally to find space. Instead of the horizontal "grow" argument, "growleft" or "growright" can be used respectively "growup" and "growdown". The optional flags argument is a space separated list containing the following key words: ewmhiwa, growonwindowlayer, growonlayers and screen. ewmhiwa causes fvwm to ignore the EWMH working area. growonwindowlayer causes the various grow methods to ignore windows with a layer other than the current layer of the window which is maximized. The growonlayers option must have two integer arguments. The first one is the minimum layer and the second one the maximum layer to use. Windows that are outside of this range of layers are ignored by the grow methods. A negative value as the first or second argument means to assume no minimum or maximum layer. screen must have an argument which specifies the Xinerama screen on which to operate. It can be 'p' for the primary screen, 'c' for the current screen (containing the mouse pointer), 'g' for the global screen or the screen number itself (counting from zero). This option is only useful with multiple Xinerama screens.
Here are some examples. The following adds a title-bar button to switch a window to the full vertical size of the screen:
Mouse 0 4 A Maximize 0 100
The following causes windows to be stretched to the full width:
Mouse 0 4 A Maximize 100 0
This makes a window that is half the screen size in each direction:
Mouse 0 4 A Maximize 50 50
To expand a window horizontally until any other window is found:
Mouse 0 4 A Maximize 0 grow
To expand a window until any other window on the same or a higher layer is hit.
Mouse 0 4 A Maximize growonlayers $[w.layer] -1 grow grow
To expand a window but leave the lower 60 pixels of the screen unoccupied:
Mouse 0 4 A Maximize 100 -60p
Values larger than 100 can be used with caution.

Refresh

导致屏幕上的所有窗口重绘自己。所有窗口样式和外观的所有待定更新都会立即应用。例如,如果在fvwm函数内发出的Style或TitleStyle命令。

RefreshWindow

使所选窗口重绘自身。窗口的样式和外观的所有待定更新都会立即应用。 例如。 如果在fvwm函数内发出的Style或TitleStyle命令。

Stick [bool]

如果bool参数为空或“toggle”时,则Stick命令会使窗口粘性(如果它尚未粘滞);或者如果粘性已粘,则为非粘性。

要使窗口粘滞而不管其当前状态如何,bool参数必须为“True”。 要使其不粘,请使用“False”。

StickAcrossPages [bool]

像Stick一样工作,但只能跨越页面,而不是跨越桌面。

StickAcrossDesks [bool]

像Stick一样工作,但只能跨越桌面,而不是跨越页面。

WindowShade [bool] | [[ShadeAgain]direction]

Toggles the window shade feature for titled windows. Windows in the shaded state only display a title-bar. If bool is not given or "toggle", the window shade state is toggled. If bool is "True", the window is forced to the shaded state. If bool is "False", then the window is forced to the non-shaded state. To force shading in a certain direction, the direction argument can be used. Any of the strings "North", "South", "West", "East", "NorthWest", "NorthEast", "SouthWest", "SouthEast" or "Last" can be given. The direction can be abbreviated with the usual one or two letters "N", "NW", etc. Using a direction on a window that was already shaded unshades the window. To shade it in a different direction, use the ShadeAgain option. The direction Last shades the window in the direction it last was shaded. If the window has never been shaded before it is shaded as if no direction had been given. Windows without titles can be shaded too. Please refer also to the options WindowShadeSteps, WindowShadeShrinks, WindowShadeScrolls, WindowShadeLazy, WindowShadeAlwaysLazy and WindowShadeBusy options of the Style command. Examples:
Style * WindowShadeShrinks, WindowShadeSteps 20, \
WindowShadeLazy
Mouse 1 - S WindowShade North
Mouse 1 [ S WindowShade West
Mouse 1 ] S WindowShade E
Mouse 1 _ S WindowShade S
Note: When a window that has been shaded with a direction argument changes the direction of the window title (see TitleAtTop Style option), the shading direction does not change. This may look very strange. Windows that were shaded without a direction argument stay shaded in the direction of the title bar.
For backward compatibility, the optional argument may also be 1 to signify "on", and 2 to signify "off". Note that this syntax is obsolete, and will be removed in the future.

WindowShadeAnimate [steps[p]]

此命令已过时。 请改用Style命令的WindowShadeSteps选项。

Recapture

导致fvwm重新获得所有窗口。 这可确保使用最新的样式参数。 重新捕获操作在视觉上令人不安。

自fvwm版本2.4,只有很少的Style选项需要执行Recapture才能生效(例如UseStyle)。此命令已过时,不应再使用。如果您想要做的一些事情只有通过该命令才可以完成,请将此报告给fvwm-workers邮件列表<fvwm-workers@fvwm.org>。此命令可能在将来的某个时候被删除。请阅读「Delayed Execution of Commands」一节末尾的注释,了解如何避免Recapture命令。

RecaptureWindow

使fvwm重新捕获所选窗口。

此命令已过时,不应再使用。 请参阅重新捕获详细信息。

参考文献

  • WikiNotes/控制窗口状态
  • Fvwm Manual/Window State

「FVWM」 - 控制窗口状态 @20210120相关推荐

  1. # 2021-01-13 #「FVWM」- 配置命令章节列表

    命令说明按照如下的章节进行了分组: 菜单命令(Menu commands) 杂项命令(Miscellaneous commands) 窗口的移动和放置(Commands affecting windo ...

  2. 「FVWM」- 窗口的组成 @20210122

    窗口的四个组成部分 在FVWM中,大多数应用窗口的周围会被放置装饰性的边框. 应用窗口由以下几部分组成: 术语 别名 属于 描述 BAR SIDE-BARS BORDER 每侧都存在的「条」.四条边, ...

  3. # 2021-01-13 #「FVWM」- 虚拟桌面(让你桌面比屏幕更大)

    在FVWM中,为用户提供了「虚拟桌面」的功能. 什么是「虚拟桌面」? 「屏幕」是在一个「桌面」上的一个视口,「桌面」可能大于「屏幕」. 可以访问多个不同的「桌面」(概念:当「视图」应用程序不同时,每个 ...

  4. 「FVWM」- FvwmButtons @20210123

    FvwmButtons,FVWM的按钮盒子.可以在其中创建各种按钮,也可以"吞并"(Swallow)各种窗口.所谓吞并就是把某个程序窗口包含在FvwmButtons中.如下截图: ...

  5. 「FVWM」- 截图 @20210121

    可以这么做-- #1 在面板中嵌入一个终端-- http://www.fvwm.org/screenshots/2005-02-17_Thomas_Adam-desk-1280x960/screens ...

  6. 时空AI技术:利用轨迹数据全方面「监测」路网交通状态

    准确的网络范围交通状态估计对于许多交通运营和城市应用至关重要.然而,现有方法在城市级别执行实时推理时通常会遇到可扩展性问题,或者在有限数据下不够稳健.目前,来自探测车辆的 GPS 轨迹数据已成为许多交 ...

  7. 量子态太「脆弱」如何纠错?MIT教授Peter Shor多年研究得到验证

    # 机器之心 量子计算的一个目标就是以指数级倍数超过传统经典计算机的速度,但是在量子计算机中,量子比特比较脆弱,因为每个量子比特都处于 0 和 1 的混合状态,任何检测它们的方式都会直接破坏数据.来自 ...

  8. java tcp权限控制_「图解」TCP重传、滑动窗口、流量控制、拥塞控制

    前言 前一篇35 张图解被问千百遍的 TCP 三次握手和四次挥手面试题得到了很多读者的认可,在此特别感谢你们的认可,大家都暖暖的. 来了,今天又来图解 TCP 了,小林可能会迟到,但不会缺席. 迟到的 ...

  9. 基于「ClamAv」通过python进行病毒检测(2)-- pyClamd控制clamd详解

    介绍pyClamd模块一般用法和常用方法等. 我们可以使用python来控制clamd,从而操控ClamAv,需要引入第三方模块:pyClamd. 使用pyClamd控制clamd之前,必须先正确安装 ...

最新文章

  1. 5.5 function
  2. linux环境下查看项目内存情况
  3. mysql连接代码_MySQL 表连接
  4. 吴恩达深度学习 —— 2.18(选修)逻辑回归损失函数的解释
  5. oracle使用表空间语句,oracle表空间语句
  6. 遇到bug我会怎么做
  7. 设计模式(八)桥接模式
  8. android wifi直连共享文件,让Android支持AD-hoc方式连WIFI(笔记本直接用WIFI共享给手机)的方法...
  9. dsp2812 linux开发板,自制DSP2812开发板
  10. python自学1.2-运算符和表达式
  11. Metasploit 读书笔记
  12. 云原生时代的镜像分发工具——Dragonfly简介
  13. Java中 VO、 PO、DO、DTO、 BO、 QO、DAO、POJO的概念(转)
  14. 脉冲宽度调制(PWM)和DAC转换练习
  15. Harbor2.2 用户角色权限速查
  16. 计算机ata考试教案,ATA办公软件考级教案(四).docx
  17. 学习途中的风景 2016年 5月
  18. 如何选一款适合企业的进销存软件?这款软件推荐给你
  19. Vulhub靶场搭建
  20. 视频教程-零基础学C#编程—C#从小白到大咖-C#

热门文章

  1. LoRa烟雾报警器的安装方式
  2. 第二十六讲:神州路由器PPP PAP认证的配置
  3. 【C语言】汉诺塔问题。
  4. 蓝桥杯——第八届省赛_基于单片机的电子钟程序设计与调试
  5. mysql xa 事务_MySQL的XA事务问题分析
  6. 戴尔显示rpc服务器,RakNet4远程调用(RPC)--局域网对战基础
  7. 图像中目标的绝对位置信息(2)--Global Pooling, More than Meets the Eye: Position Information is Encoded Channel-
  8. 《挑战程序设计竞赛》学习笔记(二):穷竭搜索
  9. nRF52笔记(19)sd_ble_gap_scan_start主机扫描的使用
  10. 绝美的山水:湖在天上 天在湖里