MCPcopy Create free account
hub / github.com/WayfireWM/wf-shell / check_position

Function check_position

src/util/wf-autohide-window.cpp:96–110  ·  view source on GitHub ↗

Verify that position is correct and return a correct position */

Source from the content-addressed store, hash-verified

94
95/** Verify that position is correct and return a correct position */
96static 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
112static GtkLayerShellEdge get_anchor_edge(std::string position)
113{

Callers 2

get_anchor_edgeFunction · 0.85
setup_hotspotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected