Bug 368476 - Use placement strategy also for dialog windows
Summary: Use placement strategy also for dialog windows
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: core (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-09 02:55 UTC by Matthias
Modified: 2016-09-14 08:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias 2016-09-09 02:55:53 UTC
I set the default window placement to maximized, as shown here: http://funkyimg.com/i/2gu7y.png

This work for the apps, while Kdialog seems not effected: http://funkyimg.com/i/2gu7u.png

This is really important for me, i hate it so much when the file dialog opens and i have so less space on my notebook, its horrible.

Reproducible: Always

Steps to Reproduce:
1. Set the default window placement to maximized 
2. Open Kdialog

Actual Results:  
Kdialog opens in a small window

Expected Results:  
Kdialog opens maximized
Comment 1 Martin Flöser 2016-09-09 05:59:10 UTC
The placement strategy is ignored for dialog windows which is the reason why this does not work for it. The strategy used for dialog windows is "place on main window".

This is currently the intended behavior and would require a change of behavior. Given that I change to wishlist. I doubt that we will change that as it would cause regressions with other placement strategies.

As a workaround you could use a KWin script which maximizes the window.
Comment 2 Christoph Feck 2016-09-10 16:45:43 UTC
Additionally, the KDE file dialog remembers its previously used size.
Comment 3 Matthias 2016-09-12 12:54:36 UTC
(In reply to Martin Gräßlin from comment #1)
> I doubt that we will change that
> as it would cause regressions with other placement strategies.

Is this sure or a guess?

> As a workaround you could use a KWin script which maximizes the window.

Is there such one? My coding skills are at zero. :)
Comment 4 Martin Flöser 2016-09-13 05:53:53 UTC
(In reply to Matthias from comment #3)
> (In reply to Martin Gräßlin from comment #1)
> > I doubt that we will change that
> > as it would cause regressions with other placement strategies.
> 
> Is this sure or a guess?

This is for sure. I read the code before writing that.
Comment 5 Matthias 2016-09-14 08:42:52 UTC
(In reply to Christoph Feck from comment #2)
> Additionally, the KDE file dialog remembers its previously used size.

You are correct, its seems to be a distro specific issue, since it works here in Mint.

Thanks a lot to both