view: stop enforcing custom minimum size
I have encountered a crash (failing assert) if a view specified a fixed size less than this minimum, and according to ifreund this behavior was planned to be removed, anyway.
This commit is contained in:
@ -43,14 +43,6 @@ pub const Constraints = struct {
|
||||
max_height: u32,
|
||||
};
|
||||
|
||||
// Minimum width/height for surfaces.
|
||||
// This is needed, because external layouts and large padding and border sizes
|
||||
// may cause surfaces so small, that bugs in client applications are encountered,
|
||||
// or even surfaces of zero or negative size,which are a protocol error and would
|
||||
// likely cause river to crash. The value is totally arbitrary and low enough,
|
||||
// that it should never be encountered during normal usage.
|
||||
pub const min_size = 50;
|
||||
|
||||
const Impl = union(enum) {
|
||||
xdg_toplevel: XdgToplevel,
|
||||
xwayland_view: XwaylandView,
|
||||
|
Reference in New Issue
Block a user