GithubHelp home page GithubHelp logo

Comments (3)

SimonBuxx avatar SimonBuxx commented on May 22, 2024 2

Hey @LochlanPerry-Scott,
thank you for sharing your findings!

I abandoned the idea of a custom window for my particular application because of this issue and other drawbacks. Even apps like Spotify or Discord seem to struggle with this, although it's better now on my new QHD monitors and maybe they also improved their software.

I'll definitely try out your fix, maybe I can finally switch to a custom window at one point.

from qt-nice-frameless-window.

LochlanPerry-Scott avatar LochlanPerry-Scott commented on May 22, 2024 1

Howdy @SimonBuxx,
I too have stumbled across this issue.
I'm also using the same Windows Version and Monitor Aspect.

Initially it looks as though removing WS_CAPTION from the function '::SetWindowLong' fixed the original Vertical Bar issue however, it seems to have introduced further issues, as now a new boarder appears when full screened. (Thankfully this does not extend the one monitor).
But still not expected behaviour.

After browsing Window Styles in Winuser.h it seems that WS_CAPTION may be necessary.
(According to the Flag WS_OVERLAPPEDWINDOW, that is basically used when initializing the Resizable window)
So after another hour of testing a separate route I stumbled to an answer/workaround.

Inside of the CFramelessWindow, 'setResizable(bool)' function there is a bit of code at the end that sets a 'shadow margin'.
It seems that changing this value from:
const MARGINS shadow = { 1, 1, 1, 1 };
To:
const MARGINS shadow = { 10, 10, 10, 10 };
Works!

It looks as though there might be, at least, an 8px border around the Window, so setting the margin to anything above 8 seems to fix this issue, in my case anyway.
@Bringer-of-Light, It might be worth investigating into why this happens as it is bizarre behaviour.

I hope this can at least help with a work around until this can be sorted.

from qt-nice-frameless-window.

Harinlen avatar Harinlen commented on May 22, 2024

Thanks for the patch, helps me a lot.

from qt-nice-frameless-window.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.