mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
attempt to fix code style check
This commit is contained in:
parent
ac65afdaf7
commit
d07eb69b44
1 changed files with 12 additions and 2 deletions
|
|
@ -30,7 +30,11 @@ ssd_thickness(struct view *view)
|
||||||
* in border-only deco mode as view->ssd would only be set
|
* in border-only deco mode as view->ssd would only be set
|
||||||
* after ssd_create() returns.
|
* after ssd_create() returns.
|
||||||
*/
|
*/
|
||||||
if (!view->ssd_enabled || view->fullscreen || (view->maximized && rc.disable_maximized_ssd_decor)) {
|
if (
|
||||||
|
!view->ssd_enabled ||
|
||||||
|
view->fullscreen ||
|
||||||
|
(view->maximized && rc.disable_maximized_ssd_decor)
|
||||||
|
) {
|
||||||
return (struct border){ 0 };
|
return (struct border){ 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -87,7 +91,13 @@ static enum ssd_part_type
|
||||||
get_resizing_type(const struct ssd *ssd, struct wlr_cursor *cursor)
|
get_resizing_type(const struct ssd *ssd, struct wlr_cursor *cursor)
|
||||||
{
|
{
|
||||||
struct view *view = ssd ? ssd->view : NULL;
|
struct view *view = ssd ? ssd->view : NULL;
|
||||||
if (!view || !cursor || !view->ssd_enabled || view->fullscreen || (view->maximized && rc.disable_maximized_ssd_decor)) {
|
if (
|
||||||
|
!view ||
|
||||||
|
!cursor ||
|
||||||
|
!view->ssd_enabled ||
|
||||||
|
view->fullscreen ||
|
||||||
|
(view->maximized && rc.disable_maximized_ssd_decor)
|
||||||
|
) {
|
||||||
return LAB_SSD_NONE;
|
return LAB_SSD_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue