Commit 271c86b0 authored by Guido Gunther's avatar Guido Gunther
Browse files

PhoshHome: Clarify PHOSH_HOME_HEIGHT



Rename to PHOSH_HOME_BUTTON_HEIGHT since to not confuse the home button
with the home screen (which takes the full screen except for the panel).
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent b8ba3454
......@@ -113,13 +113,13 @@ phosh_home_new (struct zwlr_layer_shell_v1 *layer_shell,
return g_object_new (PHOSH_TYPE_HOME,
"layer-shell", layer_shell,
"wl-output", wl_output,
"height", PHOSH_HOME_HEIGHT,
"height", PHOSH_HOME_BUTTON_HEIGHT,
"anchor", ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM |
ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT |
ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT,
"layer", ZWLR_LAYER_SHELL_V1_LAYER_TOP,
"kbd-interactivity", FALSE,
"exclusive-zone", PHOSH_HOME_HEIGHT,
"exclusive-zone", PHOSH_HOME_BUTTON_HEIGHT,
"namespace", "phosh home",
NULL);
}
......@@ -10,7 +10,7 @@
#define PHOSH_TYPE_HOME (phosh_home_get_type())
#define PHOSH_HOME_HEIGHT 40
#define PHOSH_HOME_BUTTON_HEIGHT 40
G_DECLARE_FINAL_TYPE (PhoshHome, phosh_home, PHOSH, HOME, PhoshLayerSurface)
......
......@@ -761,11 +761,11 @@ phosh_shell_get_usable_area (PhoshShell *self, gint *x, gint *y, gint *width, gi
case 0:
case 180:
w = mode->width / scale;
h = mode->height / scale - PHOSH_PANEL_HEIGHT - PHOSH_HOME_HEIGHT;
h = mode->height / scale - PHOSH_PANEL_HEIGHT - PHOSH_HOME_BUTTON_HEIGHT;
break;
default:
w = mode->height / scale;
h = mode->width / scale - PHOSH_PANEL_HEIGHT - PHOSH_HOME_HEIGHT;
h = mode->width / scale - PHOSH_PANEL_HEIGHT - PHOSH_HOME_BUTTON_HEIGHT;
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment