Re: Parent windows for system dialogs

2022-06-29 Thread Nate Graham

On 6/29/22 01:10, Vlad Zahorodnii wrote:
It's odd. With the default placement policy (centered) "orphan" dialog 
windows should be centered on Wayland.


Yeah, the new default placement policy masks the issue to a large 
extent. But not everyone uses that placement policy.


Nate


Re: Parent windows for system dialogs

2022-06-29 Thread Nicolas Fella

On 6/29/22 09:10, Vlad Zahorodnii wrote:

On 6/29/22 01:35, Nicolas Fella wrote:

Hi,

we have several places where we have "system" dialogs that don't have a
"real" parent window. Examples would be stuff like KWallet, network
management, or anything spawned by kded where there's no corresponding
app window. Currently, at least on Wayland, they are placed
semi-randomly on the screen, which isn't particularly nice. See e.g.
https://bugs.kde.org/show_bug.cgi?id=456060. They probably should be
centered in the/a screen.


It's odd. With the default placement policy (centered) "orphan" dialog
windows should be centered on Wayland.


With Centered placement policy they seem to be centered indeed. With
"Minimal Overlapping" they appear in some corner though




Re: Parent windows for system dialogs

2022-06-29 Thread Vlad Zahorodnii

On 6/29/22 01:35, Nicolas Fella wrote:

Hi,

we have several places where we have "system" dialogs that don't have a
"real" parent window. Examples would be stuff like KWallet, network
management, or anything spawned by kded where there's no corresponding
app window. Currently, at least on Wayland, they are placed
semi-randomly on the screen, which isn't particularly nice. See e.g.
https://bugs.kde.org/show_bug.cgi?id=456060. They probably should be
centered in the/a screen.


It's odd. With the default placement policy (centered) "orphan" dialog 
windows should be centered on Wayland.




Parent windows for system dialogs

2022-06-28 Thread Nicolas Fella

Hi,

we have several places where we have "system" dialogs that don't have a
"real" parent window. Examples would be stuff like KWallet, network
management, or anything spawned by kded where there's no corresponding
app window. Currently, at least on Wayland, they are placed
semi-randomly on the screen, which isn't particularly nice. See e.g.
https://bugs.kde.org/show_bug.cgi?id=456060. They probably should be
centered in the/a screen.

Usually the centering would be achieved by settingĀ  a parent window, but
in that case there isn't an obvious one. What should we do in that case?
Set the parent window to some magic Plasma window? Special-case this in
KWin somehow? Something else entirely?

Cheers

Nico