Propose 0,0 dimensions for windows floating by rule
This commit is contained in:
parent
ed72d8a15d
commit
8f5d4d3669
1 changed files with 3 additions and 2 deletions
|
|
@ -297,8 +297,9 @@ pub fn manage(window: *Window) void {
|
||||||
// Use 75% of the output's usable size, clamped to the window's dimension hints.
|
// Use 75% of the output's usable size, clamped to the window's dimension hints.
|
||||||
if (window.output) |output| {
|
if (window.output) |output| {
|
||||||
if (window.rect.width == 0) {
|
if (window.rect.width == 0) {
|
||||||
// The window didn't even *exist* before, i.e. we only got here via a floating window rule.
|
// The window didn't even *exist* before, i.e. we only got here via a floating window rule,
|
||||||
// Don't propose dimensions, let it start how it wants.
|
// so just let it choose its own dimensions.
|
||||||
|
river_window_v1.proposeDimensions(0, 0);
|
||||||
if (window.pending_manage.dimensions) |dimensions| {
|
if (window.pending_manage.dimensions) |dimensions| {
|
||||||
// TODO: Is it even possible to make it in here? I need to ask ifreund, probably
|
// TODO: Is it even possible to make it in here? I need to ask ifreund, probably
|
||||||
// We want to center the output; this works even if the proposed dimensions
|
// We want to center the output; this works even if the proposed dimensions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue