[opensuse-support] resolution change - resize and reposition windows
Hi *, is there a feature in plasma5 or a tool that is able to reposition and resize windows relative to a resolution change of the root display? I had the problem, that after switching between my internal notebook screen and my external monitor plasma itself (except for the widgets) resized its elements properly, but all my running windows are too big or too small and have the wrong position. Though I switched off the notebook screen via xrandr in the sddm config scripts and also in kscreen, this also happens when switching off and on the external monitor. After having switched off the monitor, the notebook screen remains dark, but when I switch it on again, the notebook screen flickers for a few seconds, before the external monitor displays the screen. This short time is enough to switch resolution back to the notebook screen and forth again to the external monitor - resulting in wrong positioned and sized windows. In the meantime I assembled a few pieces found on the internet and this way got a working, but very ugly solution: A small program is listening via xlib functions to configure events and when it notices a change in resolution it runs some external script or program. The external script (in my case) checks for all running windows with certain properties and resizes and repositions them. The main problem with this solution is, that it is too slow. If the resolution changes more than one time in a given period, we have more than routine running that wants to resize and reposition windows resulting in a mix up. So what I'm really looking for is a solution built into plasma itself or a tool that works fast enough. Thx for reading :) Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Le 20/01/2019 à 11:02, Michael Hirmke a écrit :
Hi *,
is there a feature in plasma5 or a tool that is able to reposition and resize windows relative to a resolution change of the root display?
http://dodin.org/wiki/pmwiki.php?n=Doc.AddXResolution I use this system and it works across pluging or unpluging external screen only problem, the widget are regouped in the basic screen jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hi,
Le 20/01/2019 à 11:02, Michael Hirmke a écrit :
Hi *,
is there a feature in plasma5 or a tool that is able to reposition and resize windows relative to a resolution change of the root display?
I use this system and it works across pluging or unpluging external screen
only problem, the widget are regouped in the basic screen
thx for your answer, but if I understand that solution correctly, it modifies the screen resolution for one of the used monitors to match the screen resolution of the second one? But wouldn't that lead to font, icon, window ... sizes that are either too large or too small on one or the other monitor?
jdd
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Le 20 janvier 2019 12:30:00 GMT+01:00, mh@mike.franken.de a écrit :
Hi,
Le 20/01/2019 à 11:02, Michael Hirmke a écrit :
Hi *,
is there a feature in plasma5 or a tool that is able to reposition and resize windows relative to a resolution change of the root display?
I use this system and it works across pluging or unpluging external screen
only problem, the widget are regouped in the basic screen
thx for your answer, but if I understand that solution correctly, it modifies the screen resolution for one of the used monitors to match the screen resolution of the second one? But wouldn't that lead to font, icon, window ... sizes that are either too large or too small on one or the other monitor?
yes and no. it was primarily to get full HD on the laptop. simply it's not perturbed by external -- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (3)
-
Jdd
-
jdd@dodin.org
-
mh@mike.franken.de