aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2013-12-16 19:02:17 +0000
committerokan2013-12-16 19:02:17 +0000
commit9798372dada127b4294dd53e80501c05e544b86c (patch)
treed953b0b3e96eaa7da4a614d942438fb44ede06bc /kbfunc.c
parent2f199b5ad84adda4a8b7d72b78529d68ec037786 (diff)
downloadcwm-9798372dada127b4294dd53e80501c05e544b86c.tar.gz
Implement support for EWMH's _NET_WM_STATE_FULLSCREEN hint.
Since we already have a form of 'maximize', we need to differentiate between 'maximize' and the new 'fullscreen' mode. The 'maximize' mode will continue to honor gap but now *retains* the border, matching the 'vert/horz maximize' behaviour. The new 'fullscreen' mode supports and follows the _NET_WM_STATE_FULLSCREEN hint, allowing the client perform additional window modifications; in this mode, cwm(1) will *ignore* gap, remove borders and freeze(move/resize) the client. Additionally, 'fullscreen' mode will remember various combinations of previous states. * default keybinding changes: CM-f 'fullscreen', CM-m 'maximize' (re-map as desired). Positive feedback from a few, testing and ok sthen@
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kbfunc.c b/kbfunc.c
index ae3ba71..749544f 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: kbfunc.c,v 1.84 2013/12/13 22:39:13 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.85 2013/12/16 19:02:17 okan Exp $
*/
#include <sys/param.h>
@@ -448,6 +448,12 @@ kbfunc_client_movetogroup(struct client_ctx *cc, union arg *arg)
}
void
+kbfunc_client_fullscreen(struct client_ctx *cc, union arg *arg)
+{
+ client_fullscreen(cc);
+}
+
+void
kbfunc_client_maximize(struct client_ctx *cc, union arg *arg)
{
client_maximize(cc);