-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect window placement/scaling in QT apps #30
Comments
My previous assumption was incorrect, which is why I deleted the comment and added a more specific case description here. As can be seen from the images below, the discrepancy in scaling depends on the openbox decorations (green), especially the QT APPS. Especially in the slave window at the bottom right you can see how the distances at the very bottom edge change parallel to the title decoration size. If I enlarge the title bar, the distance to the bottom edge (top tint panel edge) becomes the same size as the Openbox title bar decoration. If I make the Openbox title bar decoration smaller, the distance below to the Tint panel edge also becomes smaller. The QT app on the "top right (slave)" is oriented towards the GTK app on the left without taking the decoration into account, which is positioned correctly (I mean the GTK-APP is correctly). So when scaling, the Openbox title bar is not taken into account and it is always based on the GTK app on the left without a title bar. And in the lower right QT app, a large space is added at the bottom, just like an Openbox title bar. |
I think you are on the right track here. Can you give a minimal example QT application that I can use for testing? Line 62 in 7c42aea
to |
With the standard configuration "Window Decoration = false" i.e. without decoration everything works perfectly. GTK and QT apps are positioned correctly. Only if I want to have the decoration, i.e. "Window Decoration = true", then this problem arises. All QT apps lead to problems. Especially in my case it is worth mentioning the file manager "pcmanfm-qt", note program "feathernotes". But all other QT apps that I tested alternatively also led to this behavior. |
This should be fixed with the latest release. Feel free to reopen/create an issue if you encounter any other problems. |
My window manager is Openbox and Cortile does not recognize the Openbox decoration specifically with QT-App. In GTK apps it recognizes the decoration without any problems. I noticed a hint in the log file as to what might be the problem. The (Tint2) panel is taken out by Cortile, which means I no longer have a 1920x1080 desktop resolution, but 1920 x 1052. My panel is 28px high, so that's fine. In the case of placing QT apps, Cortile probably uses a different resolution than GTK apps, which could explain the upward shift. Could you correct that?

The text was updated successfully, but these errors were encountered: