nclarius / KWin-window-positioning-scripts

KWin scripts controlling window placement on multi-monitor setups
GNU General Public License v3.0
59 stars 14 forks source link

Non-resizable windows are ignored #12

Open bigbruno opened 2 years ago

bigbruno commented 2 years ago

Is there a problem with forcing the screen to windows that are not resizable?

For example the v4l2ucp program emits 2 alert dialogs on my computer before opening, the 2 dialogs are not resizable, so they open in the wrong window.

I know I can force the Kwin configuration, but I would like to try some generic way of solution.

nclarius commented 2 years ago

Unfortunately it's not quite simple since there are some special windows (such as lock screens) which don't properly declare themselves as such, so the restriction on resizability was the most effective one to prevent windows from being moved that shouldn't be; but I can look into whether a more fine-grained distinction may be possible.

nclarius commented 2 years ago

I need some more info on those dialogs that appear ont he wrong screen. Could you please do the following:

  1. Open a terminal and run: journalctl -g "alwaysopen" -f 2>&1 | tee alwaysopen.log - don't close the terminal yet
  2. Trigger the altert dialogs; titles of added windows will be logged, so make sure these contain no sensitive information
  3. Go back to the terminal and press Ctrl+C; you may close the terminal now
  4. If the output of the logging was empty, try echo 'export QT_LOGGING_RULES="kwin_*.debug=true"' >> ~/.bash_profile and kwriteconfig5 --file startkderc --group General --key systemdBoot true, log out and in again, and repeat steps 1. to 3. You can later revert these changes by running the same commands with false respecitvely.
  5. Post the contents of the file ~/alwaysopen.log here. Thanks.

Edit: And could you also post the output of qdbus org.kde.KWin /KWin supportInformation.