<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>464132</bug_id>
          
          <creation_ts>2023-01-11 08:12:01 +0000</creation_ts>
          <short_desc>One pixel overlap when disabling and enabling screen which can cause panel widgets to open on the wrong location or the wrong screen</short_desc>
          <delta_ts>2023-04-21 14:07:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>KScreen</product>
          <component>common</component>
          <version>5.27.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>455394</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>HI</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Linus Kardell">linus.kardell</reporter>
          <assigned_to name="kscreen-bugs-null@kde.org">kscreen-bugs-null</assigned_to>
          <cc>alex.kuntsch+kde</cc>
    
    <cc>edoubrayrie</cc>
    
    <cc>kde</cc>
    
    <cc>michael</cc>
    
    <cc>nate</cc>
    
    <cc>phrasky</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>postix</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2195720</commentid>
    <comment_count>0</comment_count>
    <who name="Linus Kardell">linus.kardell</who>
    <bug_when>2023-01-11 08:12:01 +0000</bug_when>
    <thetext>SUMMARY
When enabling a new monitor, it overlaps the old one by one pixel column.

STEPS TO REPRODUCE
1. Have one monitor enabled
2. Enable another monitor

OBSERVED RESULT
The new monitor overlaps the old one with one pixel. So if the first monitor as is 2560x1440, the new monitor ends up at coordinate 2559,0. Then, when maximizing a window on the left monitor, the rightmost pixel column of the window will also be shown on the left edge of the right monitor.

EXPECTED RESULT
The new monitor should not overlap with the old one.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230108
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.3-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 Gibyte of RAM
Graphics Processor: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
Manufacturer: ASUS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2195979</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-01-11 18:59:09 +0000</bug_when>
    <thetext>This is fixed already for Plasma 5.27, thankfully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2207994</commentid>
    <comment_count>2</comment_count>
    <who name="Linus Kardell">linus.kardell</who>
    <bug_when>2023-02-15 07:45:20 +0000</bug_when>
    <thetext>I just got Plasma 5.27, and I still have this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208582</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Butash">michael</who>
    <bug_when>2023-02-17 01:44:58 +0000</bug_when>
    <thetext>Oddly I saw this today testing 5.27.0 on arch enabling multiple displays they were misplacing off by one pixel in alignment as a snap-to.  I would have never noticed if I weren&apos;t looking at settings in nvidia-settings right next to it.  Monitor placement is always really weird and difficult to place displays even manually dragging them (still in 5.27, maybe eventually they&apos;ll fix this), but really wacky things happen when you get those overlaps, so really hurts when the settings is doing this to you in the first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209002</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-17 18:41:57 +0000</bug_when>
    <thetext>Do you have 3 screens? I just found out that the prohibition on overlapping only takes effect for 2 screens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209018</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Butash">michael</who>
    <bug_when>2023-02-17 19:13:14 +0000</bug_when>
    <thetext>Yes, 4 actually.  It only seemed to happen on the last, but I didn&apos;t test how commonly it would occur if adding them incrementally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209025</commentid>
    <comment_count>6</comment_count>
    <who name="Linus Kardell">linus.kardell</who>
    <bug_when>2023-02-17 19:44:56 +0000</bug_when>
    <thetext>I have two screens</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210271</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-21 17:23:36 +0000</bug_when>
    <thetext>Ok Michael, then your thing is a different bug. Let&apos;s focus on Linus&apos; issue here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210272</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-21 17:24:05 +0000</bug_when>
    <thetext>Linus, can you re-arrange the screens in the Display Configuration page in System Settings to remove the overlap?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210275</commentid>
    <comment_count>9</comment_count>
    <who name="Linus Kardell">linus.kardell</who>
    <bug_when>2023-02-21 17:46:57 +0000</bug_when>
    <thetext>Yes, I can. In fact, I can&apos;t not remove the overlap when rearranging them.

When I first enable the second monitor, the rearrangement thing (when clicking and holding without moving the mouse) shows both of them as being at coordinate 0,0, even though they&apos;re shown side-by-side. If I save, exit the configuration, and return, the second one will then be at 2559,0. But if I move either monitor, the second monitor snaps to 2560,0. I can&apos;t make the screens overlap if I drag them, it only happens if I save without dragging them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210365</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-21 21:16:40 +0000</bug_when>
    <thetext>Ok, so once you&apos;ve dragged to remove the overlap and then saved, does it then avoid overlapping in the future? Or does the overlap return?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210573</commentid>
    <comment_count>11</comment_count>
    <who name="Linus Kardell">linus.kardell</who>
    <bug_when>2023-02-22 08:14:57 +0000</bug_when>
    <thetext>The overlap returns if I disable the second screen, saves, and reenables it again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210789</commentid>
    <comment_count>12</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-22 20:30:02 +0000</bug_when>
    <thetext>Ok, thanks. We prevented manual overlapping in the UI, but it looks like this one-pixel overlap can still happen with the automatic positioning. Can you paste the output of `kscreen-doctor -o` before and after the overlap happens?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211121</commentid>
    <comment_count>13</comment_count>
    <who name="Linus Kardell">linus.kardell</who>
    <bug_when>2023-02-23 17:41:16 +0000</bug_when>
    <thetext>Before enabling second monitor (DP-4):

Output: 444 DP-0 enabled connected priority 1 DisplayPort Modes: 445:2560x1440@60! 446:2560x1440@170 447:2560x1440@144* 448:2560x1440@120 449:2560x1440@100 450:1920x1080@144 451:1920x1080@60 452:1920x1080@60 453:1920x1080@50 454:1680x1050@60 455:1440x900@60 456:1280x1024@75 457:1280x1024@60 458:1280x960@60 459:1280x800@60 460:1280x720@60 461:1280x720@60 462:1280x720@50 463:1152x864@75 464:1024x768@75 465:1024x768@70 466:1024x768@60 467:800x600@75 468:800x600@72 469:800x600@60 470:800x600@56 471:720x576@50 472:720x480@60 473:640x480@75 474:640x480@73 475:640x480@60 476:640x480@60 Geometry: 0,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 477 DP-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 478 HDMI-0 disabled disconnected priority 0 HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 479 DP-2 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 480 DP-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 481 DP-4 disabled connected priority 0 DisplayPort Modes: 451:1920x1080@60 452:1920x1080@60 453:1920x1080@50 454:1680x1050@60 455:1440x900@60 456:1280x1024@75 461:1280x720@60 462:1280x720@50 464:1024x768@75 465:1024x768@70 466:1024x768@60 467:800x600@75 468:800x600@72 469:800x600@60 470:800x600@56 471:720x576@50 472:720x480@60 473:640x480@75 474:640x480@73 475:640x480@60 476:640x480@60 482:2560x1440@60! 483:2560x1440@144 484:2560x1440@120 485:1920x1080@144 486:1920x1080@120 487:1680x1050@120 488:1440x900@120 489:1440x576@50 490:1440x480@60 491:1280x1024@120 492:1280x720@120 Geometry: 0,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 493 DP-5 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 494 USB-C-0 disabled disconnected priority 0 Unknown Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown

After enabling second monitor, without moving it:

Output: 444 DP-0 enabled connected priority 1 DisplayPort Modes: 445:2560x1440@60! 446:2560x1440@170 447:2560x1440@144* 448:2560x1440@120 449:2560x1440@100 450:1920x1080@144 451:1920x1080@60 452:1920x1080@60 453:1920x1080@50 454:1680x1050@60 455:1440x900@60 456:1280x1024@75 457:1280x1024@60 458:1280x960@60 459:1280x800@60 460:1280x720@60 461:1280x720@60 462:1280x720@50 463:1152x864@75 464:1024x768@75 465:1024x768@70 466:1024x768@60 467:800x600@75 468:800x600@72 469:800x600@60 470:800x600@56 471:720x576@50 472:720x480@60 473:640x480@75 474:640x480@73 475:640x480@60 476:640x480@60 Geometry: 0,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 477 DP-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 478 HDMI-0 disabled disconnected priority 0 HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 479 DP-2 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 480 DP-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 481 DP-4 enabled connected priority 2 DisplayPort Modes: 451:1920x1080@60 452:1920x1080@60 453:1920x1080@50 454:1680x1050@60 455:1440x900@60 456:1280x1024@75 461:1280x720@60 462:1280x720@50 464:1024x768@75 465:1024x768@70 466:1024x768@60 467:800x600@75 468:800x600@72 469:800x600@60 470:800x600@56 471:720x576@50 472:720x480@60 473:640x480@75 474:640x480@73 475:640x480@60 476:640x480@60 482:2560x1440@60! 483:2560x1440@144* 484:2560x1440@120 485:1920x1080@144 486:1920x1080@120 487:1680x1050@120 488:1440x900@120 489:1440x576@50 490:1440x480@60 491:1280x1024@120 492:1280x720@120 Geometry: 2559,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 493 DP-5 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 494 USB-C-0 disabled disconnected priority 0 Unknown Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown

After moving second monitor:

Output: 444 DP-0 enabled connected priority 1 DisplayPort Modes: 445:2560x1440@60! 446:2560x1440@170 447:2560x1440@144* 448:2560x1440@120 449:2560x1440@100 450:1920x1080@144 451:1920x1080@60 452:1920x1080@60 453:1920x1080@50 454:1680x1050@60 455:1440x900@60 456:1280x1024@75 457:1280x1024@60 458:1280x960@60 459:1280x800@60 460:1280x720@60 461:1280x720@60 462:1280x720@50 463:1152x864@75 464:1024x768@75 465:1024x768@70 466:1024x768@60 467:800x600@75 468:800x600@72 469:800x600@60 470:800x600@56 471:720x576@50 472:720x480@60 473:640x480@75 474:640x480@73 475:640x480@60 476:640x480@60 Geometry: 0,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 477 DP-1 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 478 HDMI-0 disabled disconnected priority 0 HDMI Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 479 DP-2 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 480 DP-3 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 481 DP-4 enabled connected priority 2 DisplayPort Modes: 451:1920x1080@60 452:1920x1080@60 453:1920x1080@50 454:1680x1050@60 455:1440x900@60 456:1280x1024@75 461:1280x720@60 462:1280x720@50 464:1024x768@75 465:1024x768@70 466:1024x768@60 467:800x600@75 468:800x600@72 469:800x600@60 470:800x600@56 471:720x576@50 472:720x480@60 473:640x480@75 474:640x480@73 475:640x480@60 476:640x480@60 482:2560x1440@60! 483:2560x1440@144* 484:2560x1440@120 485:1920x1080@144 486:1920x1080@120 487:1680x1050@120 488:1440x900@120 489:1440x576@50 490:1440x480@60 491:1280x1024@120 492:1280x720@120 Geometry: 2560,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 493 DP-5 disabled disconnected priority 0 DisplayPort Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 494 USB-C-0 disabled disconnected priority 0 Unknown Modes: Geometry: 0,0 0x0 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212333</commentid>
    <comment_count>14</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-27 19:12:24 +0000</bug_when>
    <thetext>Yup. Before:
&gt; Geometry: 0,0 2560x1440
After:
&gt; Geometry: 2559,0 2560x1440
Another question: when the screens are in &quot;one pixel overlap&quot; state, do you by any chance see panel pop-ups opening on the wrong screen?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212375</commentid>
    <comment_count>15</comment_count>
    <who name="Linus Kardell">linus.kardell</who>
    <bug_when>2023-02-27 21:11:59 +0000</bug_when>
    <thetext>Yes, if I open a panel pop-up on the far left end of the panel (the start menu) on the right screen while there is an overlap, the pop-up shows up on the right side of the left screen instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212635</commentid>
    <comment_count>16</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-28 18:46:49 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2216651</commentid>
    <comment_count>17</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-03-15 17:23:55 +0000</bug_when>
    <thetext>*** Bug 467367 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2220434</commentid>
    <comment_count>18</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-04-04 23:21:08 +0000</bug_when>
    <thetext>*** Bug 467776 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2224268</commentid>
    <comment_count>19</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-04-21 14:07:05 +0000</bug_when>
    <thetext>Same root cause as Bug 455394; will be fixed by https://invent.kde.org/plasma/kscreen/-/merge_requests/204!

*** This bug has been marked as a duplicate of bug 455394 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>