Created
August 10, 2015 00:00
-
-
Save jdiez17/51202edfcb64a9e1291e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+int cmd_fullscreen(struct sway_config *config, int argc, char **argv) { | |
+ if (argc != 1) { | |
+ sway_log(L_ERROR, "Invalid fullscreen command (expected 1 arguments, got %d)", argc); | |
+ return 1; | |
+ } | |
+ | |
+ swayc_t *container = get_focused_container(&root_container); | |
+ wlc_view_set_state(container->handle, WLC_BIT_FULLSCREEN, true); | |
+ | |
+ return 1; | |
+} | |
+ | |
+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment