diff options
author | Gregor Bollerhey <gbsoftware@arcor.de> | 2013-12-14 07:43:26 (GMT) |
---|---|---|
committer | Jan Sucan <jan@jansucan.com> | 2020-04-05 07:47:18 (GMT) |
commit | 7e762f0a972b7714f76a94e537dd65d0067f67b2 (patch) | |
tree | 86968d8a594d15513efffc42cc559a62797f4e7e /src/SystemTray.hh | |
parent | 53fa0d6aaca3eb8a1fe8011e0e3d53cb85e1a772 (diff) | |
download | fluxbox-7e762f0a972b7714f76a94e537dd65d0067f67b2.zip fluxbox-7e762f0a972b7714f76a94e537dd65d0067f67b2.tar.bz2 |
Make systray icon pinning available.
The user options screenname.systray.pinLeft and
screenname.systray.pinRight in .fluxbox/init are read as comma sperated
list of window classnames.
While preserving the order of the lists, systray icons are sorted so
that pinLeft'ed classnames appear left and vice versa.
Diffstat (limited to 'src/SystemTray.hh')
-rw-r--r-- | src/SystemTray.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SystemTray.hh b/src/SystemTray.hh index 16e703e..b9fd75a 100644 --- a/src/SystemTray.hh +++ b/src/SystemTray.hh | |||
@@ -26,12 +26,14 @@ | |||
26 | #include "FbTk/FbWindow.hh" | 26 | #include "FbTk/FbWindow.hh" |
27 | #include "FbTk/EventHandler.hh" | 27 | #include "FbTk/EventHandler.hh" |
28 | #include "FbTk/Signal.hh" | 28 | #include "FbTk/Signal.hh" |
29 | #include "FbTk/Resource.hh" | ||
29 | 30 | ||
30 | #include "ToolTheme.hh" | 31 | #include "ToolTheme.hh" |
31 | #include "ToolbarItem.hh" | 32 | #include "ToolbarItem.hh" |
32 | 33 | ||
33 | #include <list> | 34 | #include <list> |
34 | #include <memory> | 35 | #include <memory> |
36 | #include <string> | ||
35 | 37 | ||
36 | class BScreen; | 38 | class BScreen; |
37 | class ButtonTheme; | 39 | class ButtonTheme; |
@@ -91,6 +93,7 @@ public: | |||
91 | 93 | ||
92 | private: | 94 | private: |
93 | void update(); | 95 | void update(); |
96 | void sortClients(); | ||
94 | 97 | ||
95 | class TrayWindow; | 98 | class TrayWindow; |
96 | typedef std::list<TrayWindow*> ClientList; | 99 | typedef std::list<TrayWindow*> ClientList; |
@@ -114,6 +117,10 @@ private: | |||
114 | // gaim/pidgin seems to barf if the selection is not an independent window. | 117 | // gaim/pidgin seems to barf if the selection is not an independent window. |
115 | // I suspect it's an interacton with parent relationship and gdk window caching. | 118 | // I suspect it's an interacton with parent relationship and gdk window caching. |
116 | FbTk::FbWindow m_selection_owner; | 119 | FbTk::FbWindow m_selection_owner; |
120 | |||
121 | // resources | ||
122 | FbTk::Resource<std::string> m_rc_systray_pinleft; | ||
123 | FbTk::Resource<std::string> m_rc_systray_pinright; | ||
117 | }; | 124 | }; |
118 | 125 | ||
119 | #endif // SYSTEMTRAY_HH | 126 | #endif // SYSTEMTRAY_HH |