diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-02-24 10:21:16 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-02-24 10:21:16 (GMT) |
commit | f0ffaf890f65d9902ba23e2cd019de5ddba071c5 (patch) | |
tree | ecfbba4c6b1f60f5f3d259c8d9e2ef77ec261d54 /src/ScreenPlacement.hh | |
parent | 49623390b623bcf4851e5cdd972e4c37d5103ecf (diff) | |
download | fluxbox-f0ffaf890f65d9902ba23e2cd019de5ddba071c5.zip fluxbox-f0ffaf890f65d9902ba23e2cd019de5ddba071c5.tar.bz2 |
moved Menu placement into ScreenPlacement::placeAndShowMenu()
Diffstat (limited to 'src/ScreenPlacement.hh')
-rw-r--r-- | src/ScreenPlacement.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ScreenPlacement.hh b/src/ScreenPlacement.hh index b60726f..7093c9b 100644 --- a/src/ScreenPlacement.hh +++ b/src/ScreenPlacement.hh | |||
@@ -27,6 +27,9 @@ | |||
27 | 27 | ||
28 | #include <memory> | 28 | #include <memory> |
29 | 29 | ||
30 | namespace FbTk { | ||
31 | class Menu; | ||
32 | } | ||
30 | class BScreen; | 33 | class BScreen; |
31 | 34 | ||
32 | /** | 35 | /** |
@@ -65,6 +68,9 @@ public: | |||
65 | bool placeWindow(const FluxboxWindow &window, int head, | 68 | bool placeWindow(const FluxboxWindow &window, int head, |
66 | int &place_x, int &place_y); | 69 | int &place_x, int &place_y); |
67 | 70 | ||
71 | // places and show 'menu' at 'x','y' | ||
72 | bool placeAndShowMenu(FbTk::Menu& menu, int x, int y, bool respect_struts); | ||
73 | |||
68 | RowDirection rowDirection() const { return *m_row_direction; } | 74 | RowDirection rowDirection() const { return *m_row_direction; } |
69 | ColumnDirection colDirection() const { return *m_col_direction; } | 75 | ColumnDirection colDirection() const { return *m_col_direction; } |
70 | 76 | ||
@@ -75,6 +81,7 @@ private: | |||
75 | PlacementPolicy m_old_policy; ///< holds old policy, used to determine if resources has changed | 81 | PlacementPolicy m_old_policy; ///< holds old policy, used to determine if resources has changed |
76 | std::auto_ptr<PlacementStrategy> m_strategy; ///< main strategy | 82 | std::auto_ptr<PlacementStrategy> m_strategy; ///< main strategy |
77 | std::auto_ptr<PlacementStrategy> m_fallback_strategy; ///< a fallback strategy if the main strategy fails | 83 | std::auto_ptr<PlacementStrategy> m_fallback_strategy; ///< a fallback strategy if the main strategy fails |
84 | BScreen& m_screen; | ||
78 | }; | 85 | }; |
79 | 86 | ||
80 | #endif // SCREENPLACEMENT_HH | 87 | #endif // SCREENPLACEMENT_HH |