diff --git a/actions.c b/actions.c index c4074d9..1c71a93 100644 --- a/actions.c +++ b/actions.c @@ -136,6 +136,14 @@ void executeKeybinding(Keybinding *kb) { toggleWindowFloating(&arg); break; + case ACTION_TOGGLEFULLSCREEN: + if (!selectedMonitor->active) { + return; + } + setWindowFullscreen(selectedMonitor->active, + !selectedMonitor->active->isFullscreen); + break; + case ACTION_VIEWWORKSPACE: // Convert workspace name to index for (size_t i = 0; i < cfg.workspaceCount; i++) { diff --git a/atlas.h b/atlas.h index 11617bc..25a5b1b 100644 --- a/atlas.h +++ b/atlas.h @@ -38,6 +38,7 @@ typedef enum { ACTION_CYCLEFOCUS, ACTION_KILLCLIENT, ACTION_TOGGLEFLOATING, + ACTION_TOGGLEFULLSCREEN, ACTION_FOCUSMONITOR, ACTION_MOVETOMONITOR, ACTION_VIEWWORKSPACE, diff --git a/config.c b/config.c index 0e002a5..5209d69 100644 --- a/config.c +++ b/config.c @@ -31,6 +31,7 @@ static const struct { {"cyclefocus", ACTION_CYCLEFOCUS}, {"killclient", ACTION_KILLCLIENT}, {"togglefloating", ACTION_TOGGLEFLOATING}, + {"togglefullscreen", ACTION_TOGGLEFULLSCREEN}, {"focusmonitor", ACTION_FOCUSMONITOR}, {"movetomonitor", ACTION_MOVETOMONITOR}, {"viewworkspace", ACTION_VIEWWORKSPACE}, diff --git a/config.h b/config.h index b0776d6..7e86b31 100644 --- a/config.h +++ b/config.h @@ -2,7 +2,6 @@ #define _CONFIG_MANAGER_H_ #include "atlas.h" -#include "freetype2/freetype/config/ftstdlib.h" // Configuration structure typedef struct {