diff options
author | rathnor <rathnor> | 2003-06-23 14:16:05 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-06-23 14:16:05 (GMT) |
commit | 09a5c23c5b099af531842ae7868e98bc8d717dac (patch) | |
tree | cf5ea34c09ee3d16ddc2e9abfc1bd2880a94067d /src/Screen.hh | |
parent | 2e6baffb9bf988901f9fa02f651efc9b2528d7b5 (diff) | |
download | fluxbox_pavel-09a5c23c5b099af531842ae7868e98bc8d717dac.zip fluxbox_pavel-09a5c23c5b099af531842ae7868e98bc8d717dac.tar.bz2 |
fix grouping to persist over restart, plus various related bugs.
Also move a large proportion of window initialisation from FluxboxWindow to
WinClient
Diffstat (limited to 'src/Screen.hh')
-rw-r--r-- | src/Screen.hh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Screen.hh b/src/Screen.hh index 920347b..78a0215 100644 --- a/src/Screen.hh +++ b/src/Screen.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.hh,v 1.108 2003/06/23 12:57:36 fluxgen Exp $ | 25 | // $Id: Screen.hh,v 1.109 2003/06/23 14:16:04 rathnor Exp $ |
26 | 26 | ||
27 | #ifndef SCREEN_HH | 27 | #ifndef SCREEN_HH |
28 | #define SCREEN_HH | 28 | #define SCREEN_HH |
@@ -295,6 +295,12 @@ public: | |||
295 | template <typename OnHeadObject> | 295 | template <typename OnHeadObject> |
296 | void setOnHead(OnHeadObject &obj, int head); | 296 | void setOnHead(OnHeadObject &obj, int head); |
297 | 297 | ||
298 | // grouping - we want ordering, so we can either search for a | ||
299 | // group to the left, or to the right (they'll be different if | ||
300 | // they exist). | ||
301 | FluxboxWindow *findGroupLeft(WinClient &winclient); | ||
302 | FluxboxWindow *findGroupRight(WinClient &winclient); | ||
303 | |||
298 | // notify netizens | 304 | // notify netizens |
299 | void updateNetizenCurrentWorkspace(); | 305 | void updateNetizenCurrentWorkspace(); |
300 | void updateNetizenWorkspaceCount(); | 306 | void updateNetizenWorkspaceCount(); |
@@ -419,6 +425,11 @@ private: | |||
419 | 425 | ||
420 | } resource; | 426 | } resource; |
421 | 427 | ||
428 | // This is a map of windows to clients for clients that had a left | ||
429 | // window set, but that window wasn't present at the time | ||
430 | typedef std::map<Window, WinClient *> Groupables; | ||
431 | Groupables m_expecting_groups; | ||
432 | |||
422 | const std::string m_name, m_altname; | 433 | const std::string m_name, m_altname; |
423 | FbTk::ResourceManager &m_resource_manager; | 434 | FbTk::ResourceManager &m_resource_manager; |
424 | 435 | ||