mirror of
https://github.com/swaywm/sway.git
synced 2026-04-03 07:15:39 -04:00
Remove redundant checks
This commit is contained in:
parent
3af52d86f7
commit
813e120979
3 changed files with 3 additions and 4 deletions
|
|
@ -75,7 +75,7 @@ struct cmd_results *cmd_border(int argc, char **argv) {
|
|||
} else if (strcmp(argv[0], "pixel") == 0) {
|
||||
set_border(container, B_PIXEL);
|
||||
} else if (strcmp(argv[0], "csd") == 0) {
|
||||
if (!view || !view->xdg_decoration) {
|
||||
if (!view->xdg_decoration) {
|
||||
return cmd_results_new(CMD_INVALID,
|
||||
"This window doesn't support client side decorations");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ struct cmd_results *cmd_fullscreen(int argc, char **argv) {
|
|||
|
||||
bool is_fullscreen = false;
|
||||
for (struct sway_container *curr = container; curr; curr = curr->parent) {
|
||||
if (curr && curr->fullscreen_mode != FULLSCREEN_NONE) {
|
||||
if (curr->fullscreen_mode != FULLSCREEN_NONE) {
|
||||
container = curr;
|
||||
is_fullscreen = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue