Verify that position is correct and return a correct position */
| 94 | |
| 95 | /** Verify that position is correct and return a correct position */ |
| 96 | static std::string check_position(std::string position) |
| 97 | { |
| 98 | if (position == WF_WINDOW_POSITION_TOP) |
| 99 | { |
| 100 | return WF_WINDOW_POSITION_TOP; |
| 101 | } |
| 102 | |
| 103 | if (position == WF_WINDOW_POSITION_BOTTOM) |
| 104 | { |
| 105 | return WF_WINDOW_POSITION_BOTTOM; |
| 106 | } |
| 107 | |
| 108 | std::cerr << "Bad position in config file, defaulting to top" << std::endl; |
| 109 | return WF_WINDOW_POSITION_TOP; |
| 110 | } |
| 111 | |
| 112 | static GtkLayerShellEdge get_anchor_edge(std::string position) |
| 113 | { |
no outgoing calls
no test coverage detected