MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / can_tile_view

Function can_tile_view

plugins/tile/tile-plugin.cpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "tile-dragging.hpp"
30
31static bool can_tile_view(wayfire_toplevel_view view)
32{
33 if (view->parent)
34 {
35 return false;
36 }
37
38 if ((view->toplevel()->get_min_size() == view->toplevel()->get_max_size()) &&
39 (view->toplevel()->get_min_size().width > 0) && (view->toplevel()->get_min_size().height > 0))
40 {
41 return false;
42 }
43
44 return true;
45}
46
47namespace wf
48{

Callers 1

Calls 2

get_min_sizeMethod · 0.45
get_max_sizeMethod · 0.45

Tested by

no test coverage detected