https://bugs.kde.org/show_bug.cgi?id=403764
--- Comment #3 from Martin Flöser <mgraess...@kde.org> --- (In reply to Deve from comment #2) > Ok, I will have a look. > > I didn't test it yet, but my understanding is that I will get > ConfigureNotify event twice (when resolution was changed and when window was > changed to fullscreen) or only once (when resolution was changed before > window was created). Or in theory never if window size was not changed (?). > So that in practice I still don't know how long I should wait to make sure > that window is "ready". > > And I need to know real window size before returning from CreateWindow() > function, otherwise it would need some major refactoring... sorry to say, but you are doing it wrong. You cannot know how many events a window manager will send you. The window manager may reparent - or not, the window manager may react on the randr event - or not, the window manager may react on the fullscreen change request - or not. This is an async protocol where you could get notify events any time. Imagine Plasma reacting to the new screen dimensions and moving the panel before you switch to fullscreen - yet another configure event due to constraints changing. I fear you have to bite the bullet and refactor it. Don't wait in a loop just react on every configure event. You might also get them after you show the window. > > ... > > And some off-topic: on wayland I changed kde decoration protocol to xdg > decoration some time ago and we will have new release soon. I assume that > it's ok for KDE? Yes, next plasma release will support it. -- You are receiving this mail because: You are watching all bug changes.