[PATCH] wmaker: prevent transient windows to create an appicon

4 views
Skip to first unread message

david.m...@gmail.com

unread,
Apr 14, 2026, 12:26:20 PMApr 14
to Window Maker Development
This patch is preventing transient windows which are defined as
short-lived window that "belongs" to a main application window
to create their own appicon.
Some applications are not creating an appicon but are getting
default appicon for their popup windows which can only disappear
when wmaker is restarted.
---
 src/appicon.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/appicon.c b/src/appicon.c
index b2f48ed6..10575380 100644
--- a/src/appicon.c
+++ b/src/appicon.c
@@ -146,6 +146,10 @@ WAppIcon *wAppIconCreateForDock(WScreen *scr, const char *command, const char *w
 
 void create_appicon_for_application(WApplication *wapp, WWindow *wwin)
 {
+ /* Transient windows should never get their own appicon */
+ if (wwin->transient_for != None && wwin->transient_for != wwin->screen_ptr->root_win)
+ return;
+
  /* Try to create an icon from the dock or clip */
  create_appicon_from_dock(wwin, wapp, wapp->main_window);
 
--
2.43.0
0001-wmaker-prevent-transient-windows-to-create-an-appico.patch
Reply all
Reply to author
Forward
0 new messages