esjeon / krohnkite

A dynamic tiling extension for KWin
MIT License
1.66k stars 66 forks source link

System Settings is not tiled properly #73

Open heraldofsolace opened 4 years ago

heraldofsolace commented 4 years ago

Symptom When I launch System Settings, by default it launches to the right of the current window. But it is not tiled properly. It overlaps some part of the current window, and also doesn't respect the gap settings. Screenshot_20200415_145708

However, if I drag it to the left of the current window, it gets tiled properly.

Screenshot_20200415_145725

How to Reproduce

  1. Launch System Settings while any other window is open.

Expected behavior System Settings will be tiled properly.

Environment

esjeon commented 4 years ago

It's because the "system settings" specified the minimum size for its window in the resize hint:

    program specified minimum size: 1024 by 700

(from xprop btw)

A little bit of rant from here:

This is basically a culprit of "desktop" UI design. Desktop applications make strong assumption, and straight refuse to adapt to the available screen space. That's how we got this 1024x700 number. They kindly left out 68 px to keep both titlebar and panel on 1024x768 screen. This won't work if someone decides to rotate the screen 90 degrees. Not to mention that the application straight reject any requests from user to reduce its size. Thus, here, the actual issue is with the system settings application. Krohnkite is simply doing its best to listen to user and not to break application at the same time.

Note that, actually, I've already tried to ignore the resize hints, but that only caused more bugs, including app crashes and rendering errors, so that path is firmly closed. I'm sorry but this is the most sane behavior at this very moment.

At least, if you have only one screen, you can try unticking "Prevent window from protruding from its screen" from the script settings. This might make things little more prettier for you (and that's the whole point of this option, in fact.)

However, the momentum of UI design has shifted to more modern "adaptive" (or "reactive") design. Things will get better in the future, but it'll take years before we get what we need to get.

heraldofsolace commented 4 years ago

@esjeon That's unfortunate! Thanks for the reply.

DebChanda commented 4 years ago

I think I have have found a fix. It is not elegant but works. Here are the steps:

  1. Open System Settings
  2. Right-click on title bar -> More Actions -> Configure Special Window Settings
  3. Click add properties, Choose Minimum Size
  4. From the drop-down menu choose Force and Reduce the size shown in pixels

Hope it helps.

heraldofsolace commented 4 years ago

@DebChanda Thanks! IT works! Also, to mention. If you have disabled title bar, you can press Alt+F3 top get the menu.