diff options
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 |