https://bugs.kde.org/show_bug.cgi?id=527851

            Bug ID: 527851
           Summary: Yakuake window size messed up after toggling
                    full-screen
    Classification: Applications
           Product: yakuake
      Version First git master
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
I noticed that toggling full screen sometimes the window breaks down and it
leaves an ugly black area beneath it.

I found that the black area is actually the background color and it leaves it
behind because the mainwindow size is not correctly set before the paint event
is called. I could fix the issue by applying the following patch:

```
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 3708874..3cc0c73 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -1145,6 +1145,7 @@ void MainWindow::updateMask()

 void MainWindow::paintEvent(QPaintEvent *event)
 {
+    applyWindowGeometry();
     QPainter painter(this);

     if (useTranslucency()) {
```
I'm not sure why a certain order of operations are necessary and why the window
size is not set properly when reverting from fullscreen, maybe that would be
the real fix.

STEPS TO REPRODUCE
1. Open yakuake
2. Set fullscreen to on
3. Hide yakuake
4. Reveal yakuake
5. Set fullscreen to off

OBSERVED RESULT
The background is larger than the actual window.

EXPECTED RESULT
It is not.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.8.0
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0
Kernel Version: 7.2.11-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600G with Radeon Graphics
Memory: 48 GiB of RAM (46.8 GiB usable)
Graphics Processor: AMD Radeon RX 580 Series

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to