Enhancement: Fixes #499, taskband - add context menu to taskband buttons

Co-authored-by: Rory Fewell <roryf@oddmatics.uk>
This commit is contained in:
Lewis
2025-11-01 17:17:50 +00:00
committed by Rory Fewell
parent f168a5f426
commit 8464ff2e80
52 changed files with 4063 additions and 2658 deletions

View File

@@ -125,6 +125,17 @@ extern WinTCWndMgmtScreen* (*wintc_wndmgmt_screen_get_default) (void);
*/
extern void (*wintc_wndmgmt_shutdown) (void);
/**
* Closes the specified window.
*
* @param window The window.
* @param timestamp The timestamp, for focus stealing prevention.
*/
extern void (*wintc_wndmgmt_window_close) (
WinTCWndMgmtWindow* window,
guint64 timestamp
);
/**
* Retrieves the icon for the specified window.
*
@@ -145,6 +156,26 @@ extern gchar* (*wintc_wndmgmt_window_get_name) (
WinTCWndMgmtWindow* window
);
/**
* Checks if the specified window is maximized.
*
* @param window The window.
* @return True if the window is maximized.
*/
extern gboolean (*wintc_wndmgmt_window_is_maximized) (
WinTCWndMgmtWindow* window
);
/**
* Checks if the specified window is minimized.
*
* @param window The window.
* @return True if the window is minimized.
*/
extern gboolean (*wintc_wndmgmt_window_is_minimized) (
WinTCWndMgmtWindow* window
);
/**
* Determines whether the specified window should receive a button in the
* window switcher.
@@ -156,6 +187,15 @@ extern gboolean (*wintc_wndmgmt_window_is_skip_tasklist) (
WinTCWndMgmtWindow* window
);
/**
* Maximizes the specified window.
*
* @param window The window.
*/
extern void (*wintc_wndmgmt_window_maximize) (
WinTCWndMgmtWindow* window
);
/**
* Minimizes the specified window.
*
@@ -165,6 +205,15 @@ extern void (*wintc_wndmgmt_window_minimize) (
WinTCWndMgmtWindow* window
);
/**
* Unmaximizes the specified window.
*
* @param window The window.
*/
extern void (*wintc_wndmgmt_window_unmaximize) (
WinTCWndMgmtWindow* window
);
/**
* Unminimizes the specified window.
*