mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Use constants for titlebar dimensions
This commit is contained in:
parent
664169fbf1
commit
f6c3682c05
5 changed files with 59 additions and 42 deletions
|
|
@ -11,6 +11,12 @@ extern struct sway_container root_container;
|
|||
struct sway_view;
|
||||
struct sway_seat;
|
||||
|
||||
#define TITLEBAR_BORDER_THICKNESS 1
|
||||
|
||||
// Padding includes titlebar border
|
||||
#define TITLEBAR_H_PADDING 3
|
||||
#define TITLEBAR_V_PADDING 4
|
||||
|
||||
/**
|
||||
* Different kinds of containers.
|
||||
*
|
||||
|
|
@ -212,4 +218,9 @@ void container_calculate_title_height(struct sway_container *container);
|
|||
|
||||
void container_notify_child_title_changed(struct sway_container *container);
|
||||
|
||||
/**
|
||||
* Return the height of a regular title bar.
|
||||
*/
|
||||
size_t container_titlebar_height();
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue