Bug 431562 - Saving file in left/right tiled Xournal++ or activate minimal view in VLC: no longer tiled correctly afterwards
Summary: Saving file in left/right tiled Xournal++ or activate minimal view in VLC: no...
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.20.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-13 20:34 UTC by postix
Modified: 2022-06-08 09:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen recording on the secondary monitor. (3.67 MB, video/mp4)
2021-01-13 20:34 UTC, postix
Details
Screenshot of KScreen KCM: Monitor Arrangement (59.92 KB, image/png)
2021-01-13 20:36 UTC, postix
Details
Screen recording on the secondary monitor: Panel on top, height 100 (1.37 MB, video/mp4)
2021-01-14 08:59 UTC, postix
Details
kwinrc (4.75 KB, text/plain)
2021-01-14 09:03 UTC, postix
Details
xprop.txt (1.98 KB, text/plain)
2021-01-14 09:06 UTC, postix
Details
xprop.txt of Xournal++ (after saving, ie with bug) (1.95 KB, text/plain)
2021-01-14 11:10 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2021-01-13 20:34:18 UTC
Created attachment 134819 [details]
Screen recording on the secondary monitor.

SUMMARY

I use a multi monitor set up. When I tile Xournal++ (v1.1.0-dev, AUR) to left or right side and save the file:

1) it does not jump around at all on the primary monitor
2) it jumps a little bit downwards on the secondary monitor

Please see the screen recording. I am not sure if this is an issue of Kwin or rather of the app itself.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Scaling 2.0
X11
Comment 1 postix 2021-01-13 20:36:19 UTC
Created attachment 134820 [details]
Screenshot of KScreen KCM: Monitor Arrangement
Comment 2 Nate Graham 2021-01-13 21:18:05 UTC
How odd. No idea whether this is the fault of KWin or Xournal.
Comment 3 Vlad Zahorodnii 2021-01-14 07:39:51 UTC
Did you install any third party scripts?
Comment 4 postix 2021-01-14 08:59:34 UTC
Created attachment 134830 [details]
Screen recording on the secondary monitor: Panel on top, height 100

(In reply to Vlad Zahorodnii from comment #3)
> Did you install any third party scripts?

I had installed a few but none third party scripts are active currently. I somehow got the feeling that it could have to do with the panel position though and indeed it does:

In the screen recording above, the panel was on the primary screen on the top edge with a height of 26.

I changed the panel height to 100 to see what happens: Now the Xournal++ window shrinks vertically and leaves an empty bottom area. Please see the screen recordings.

I then tested all the other edges (left/right/bottom) on the primary monitor as locations for the panel: The Xournal++ window still flickers when saving a file, but it doesn't jump around or changes its geometry.
Comment 5 postix 2021-01-14 09:03:19 UTC
Created attachment 134831 [details]
kwinrc
Comment 6 Vlad Zahorodnii 2021-01-14 09:03:31 UTC
Can you get the xprop output for the panel? Just run xprop in terminal and click any area on the panel.
Comment 7 postix 2021-01-14 09:06:13 UTC
Created attachment 134832 [details]
xprop.txt

(In reply to Vlad Zahorodnii from comment #6)
> Can you get the xprop output for the panel? Just run xprop in terminal and
> click any area on the panel.

Done (for the panel on top with height 26).
Comment 8 Vlad Zahorodnii 2021-01-14 09:11:43 UTC
_NET_WM_STRUT_PARTIAL seems fine

_NET_WM_STRUT_PARTIAL 0 (left), 0(right), 52(top), 0(bottom), 0(left_start_y), 0(left_end_y), 0(right_start_y), 0(right_end_y), 0(top_start_x), 2558(top_end_x), 0(bottom_start_x), 0(bottom_end_x)

I wonder if window snapping has anything to do with it.
Comment 9 postix 2021-01-14 09:35:13 UTC
(In reply to Vlad Zahorodnii from comment #8)
> I wonder if window snapping has anything to do with it.

Is that something I could test? 


I also measured the height of the offsets (distance between the Xournal++ window edge and the adjacent parallel screen edge): It's exactly the panel height of the primary screen as one could have guessed.


Also, on Wayland I do not observe this effect (besides the flickering).
Comment 10 Vlad Zahorodnii 2021-01-14 09:42:53 UTC
Yes, you can disable window snapping by setting snap zones to 0 in system settings (window management/window behavior/movement tab)

Re: flickering. Please file a bug report regarding the flickering issue.
Comment 11 postix 2021-01-14 09:49:20 UTC
(In reply to Vlad Zahorodnii from comment #10)
> Yes, you can disable window snapping by setting snap zones to 0 in system
> settings (window management/window behavior/movement tab)

Darn, I disabled all snap zones but the issue persists.

> Re: flickering. Please file a bug report regarding the flickering issue.
Will do! :)
Comment 12 Vlad Zahorodnii 2021-01-14 09:52:43 UTC
(In reply to postix from comment #11)
> Darn, I disabled all snap zones but the issue persists.

Hmm, I see. One more thing, can you reproduce this bug with other apps, e.g. kate or konsole?
Comment 13 postix 2021-01-14 09:58:00 UTC
Just to clarify:

When I now dragged the Xournal++ window after the issue happened, I could observe, that it does not simply jump downwards, but it actually shrinks in height (by the height of the panel).


(In reply to Vlad Zahorodnii from comment #12)
> (In reply to postix from comment #11)
> > Darn, I disabled all snap zones but the issue persists.
> 
> Hmm, I see. One more thing, can you reproduce this bug with other apps, e.g.
> kate or konsole?

Xournal++ is the only app where I have observed it so far. I could not reproduce it with kate or konsole.
Comment 14 postix 2021-01-14 10:02:56 UTC
> Xournal++ is the only app where I have observed it so far. I could not reproduce it with kate or konsole.

> flickering. Please file a bug report regarding the flickering issue.

Same goes for the flickering. Xournal++ must somehow trigger something weird and unusual. :)
Comment 15 postix 2021-01-14 11:10:45 UTC
Created attachment 134840 [details]
xprop.txt of Xournal++ (after saving, ie with bug)

Just for completeness, I attach the xprop of the Xournal++ window here plus the difference between the tiled state and the its state after saving:


diff xpropr_before xprop_after

< _NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 1910, 2100
---
> _NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 1910, 2046
Comment 16 postix 2021-01-14 11:17:28 UTC
The above post was for a panel height of 26
2100 - 2046 = 54 
54 / 2 = 27 = panel height + 1 

I did the same for the panel with height 80:
2100 - 1938 = 162
162 / 2 = 81 = panel height + 1
Comment 17 postix 2021-01-14 13:05:40 UTC
I found another app for which it happens: VLC 3.0.11.1

1) Open VLC
2) Activate the minimal view by
   * Ctrl + H
   * View -> Minimal View

Same effect. :)
Comment 18 postix 2021-01-15 10:37:07 UTC
I continued testing: 

If the screen arrangement is not like I had posted in #1, i.e. the screens are not aligned at the top edges (let the primary be eg at (0,300)), I can no longer observe this bug (except for the flickering). Instead I start experiencing #431488.
Comment 19 postix 2021-01-19 10:41:46 UTC
Also happens for Okular when loading a PDF (File->Open) but not when saving.