mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -04:00
ssd: add basic always-on-top button
This commit is contained in:
parent
5f668a82ee
commit
838113cc44
9 changed files with 36 additions and 2 deletions
|
|
@ -26,8 +26,9 @@ enum lab_node_type {
|
|||
LAB_NODE_BUTTON_WINDOW_MENU,
|
||||
LAB_NODE_BUTTON_SHADE,
|
||||
LAB_NODE_BUTTON_OMNIPRESENT,
|
||||
LAB_NODE_BUTTON_ONTOP,
|
||||
LAB_NODE_BUTTON_FIRST = LAB_NODE_BUTTON_CLOSE,
|
||||
LAB_NODE_BUTTON_LAST = LAB_NODE_BUTTON_OMNIPRESENT,
|
||||
LAB_NODE_BUTTON_LAST = LAB_NODE_BUTTON_ONTOP,
|
||||
LAB_NODE_BUTTON,
|
||||
|
||||
LAB_NODE_TITLEBAR,
|
||||
|
|
|
|||
|
|
@ -291,6 +291,11 @@ static struct mouse_combos {
|
|||
.button = "Left",
|
||||
.event = "Click",
|
||||
.action = "ToggleOmnipresent",
|
||||
}, {
|
||||
.context = "OnTop",
|
||||
.button = "Left",
|
||||
.event = "Click",
|
||||
.action = "ToggleAlwaysOnTop",
|
||||
}, {
|
||||
.context = "Maximize",
|
||||
.button = "Right",
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ struct ssd {
|
|||
* such a small titlebar.
|
||||
*/
|
||||
bool was_squared;
|
||||
bool was_ontop;
|
||||
|
||||
struct wlr_box geometry;
|
||||
struct ssd_state_title {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue