Skip to content
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

Closed
avnibilgin opened this issue Nov 21, 2023 · 4 comments
Closed

Incorrect window placement/scaling in QT apps #30

avnibilgin opened this issue Nov 21, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@avnibilgin
Copy link

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?
2023-11-21_17-52

@avnibilgin
Copy link
Author

avnibilgin commented Nov 22, 2023

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.

2023-11-22_11-48
2023-11-22_11-52

@leukipp leukipp self-assigned this Nov 28, 2023
@leukipp leukipp added the bug Something isn't working label Nov 28, 2023
@leukipp
Copy link
Owner

leukipp commented Dec 3, 2023

As can be seen from the images below, the discrepancy in scaling depends on the openbox decorations (green), especially the QT APPS.

I think you are on the right track here.

Can you give a minimal example QT application that I can use for testing?
Can you confirm that the issue does not appear if you set the default config

window_decoration = true

to window_decoration = false ?

@avnibilgin
Copy link
Author

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.

@leukipp
Copy link
Owner

leukipp commented Dec 10, 2023

This should be fixed with the latest release. Feel free to reopen/create an issue if you encounter any other problems.

@leukipp leukipp closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants