<?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>466119</bug_id>
          
          <creation_ts>2023-02-20 03:33:35 +0000</creation_ts>
          <short_desc>Using (-) values for windows position makes the window disapear</short_desc>
          <delta_ts>2026-05-01 23:28:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>core</component>
          <version>5.27.0</version>
          <rep_platform>NixOS</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mend">thedjknownasez</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>nate</cc>
    
    <cc>thedjknownasez</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/f0c8aabceed528a56ece0b579e32f50a19d379cb</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>2209817</commentid>
    <comment_count>0</comment_count>
    <who name="Mend">thedjknownasez</who>
    <bug_when>2023-02-20 03:33:35 +0000</bug_when>
    <thetext>When attempting to use negative values for window position under &apos;Configure Special Window Settings&apos; cause the window to turn invisible and it&apos;s position is moved nowhere near it is suppose to be. I can tell because I use this for my virtual machine and the position where my mouse is captured makes no sense what-so-ever.

STEPS TO REPRODUCE
1. Select a window
2. Alt+F3
3. More Actions&gt;Configure Special Window Settings
4. Add Property(bottm left + button)
5. Position
6. Use the Force option and use a negative value for x or y.
7. Apply and the window will disapear from view.

OBSERVED RESULT
Window disapears and moves in completely unexpected way.

EXPECTED RESULT
For it to move a negative amount of pixels off my screen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS
(available in About System)
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209818</commentid>
    <comment_count>1</comment_count>
    <who name="Mend">thedjknownasez</who>
    <bug_when>2023-02-20 03:38:06 +0000</bug_when>
    <thetext>Using the &apos;Apply Initially&apos; option(for position) seems to sometimes work for the positive value but the negative value isn&apos;t recognized.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209856</commentid>
    <comment_count>2</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2023-02-20 09:05:02 +0000</bug_when>
    <thetext>What&apos;s the usecase for putting windows offscreen?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209859</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-02-20 09:09:20 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3633</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209868</commentid>
    <comment_count>4</comment_count>
    <who name="Mend">thedjknownasez</who>
    <bug_when>2023-02-20 09:48:40 +0000</bug_when>
    <thetext>(In reply to Vlad Zahorodnii from comment #2)
&gt; What&apos;s the usecase for putting windows offscreen?

I like to have a 16:9 section of my Ultrawide sectioned off for my virtual machine. Using VMM there are headers and a toolbar at the top of the window. So in order to have a full screen like experiance I need to move it partially off screen(so the top bars are not shown anymore) and prefer to do that once I open my VM. Currently now I have to manually drag it every time I open it. I mainly do this for my Astrology work/readings as none of my software runs on Linux.

https://imgur.com/a/sC0CuTS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209929</commentid>
    <comment_count>5</comment_count>
    <who name="Mend">thedjknownasez</who>
    <bug_when>2023-02-20 12:18:04 +0000</bug_when>
    <thetext>(In reply to Bug Janitor Service from comment #3)
&gt; A possibly relevant merge request was started @
&gt; https://invent.kde.org/plasma/kwin/-/merge_requests/3633

I don&apos;t believe so. This is happening under x11(I haven&apos;t tried under Wayland). This is supposed to be a wayland fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2512885</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-04-29 21:00:44 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9156</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2513259</commentid>
    <comment_count>7</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2026-05-01 21:50:05 +0000</bug_when>
    <thetext>Git commit 2f8a86034baeb9c238fbf20f772b23cac659e073 by Xaver Hugl.
Committed on 01/05/2026 at 10:43.
Pushed by zamundaaa into branch &apos;master&apos;.

rules: make checkGeometrySafe actually safe

If the window rule&apos;s position was outside of every screen, it before returned
a rectangle that&apos;s at INT_MIN, causing the window to disappear and even
triggering asserts when that geometry was used in some calculations.

M  +7    -6    src/rules.cpp
M  +1    -2    src/rules.h
M  +3    -3    src/x11window.cpp
M  +7    -5    src/xdgshellwindow.cpp
M  +1    -1    src/xdgshellwindow.h

https://invent.kde.org/plasma/kwin/-/commit/2f8a86034baeb9c238fbf20f772b23cac659e073</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2513267</commentid>
    <comment_count>8</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2026-05-01 23:28:05 +0000</bug_when>
    <thetext>Git commit f0c8aabceed528a56ece0b579e32f50a19d379cb by Xaver Hugl.
Committed on 01/05/2026 at 22:37.
Pushed by zamundaaa into branch &apos;Plasma/6.6&apos;.

rules: make checkGeometrySafe actually safe

If the window rule&apos;s position was outside of every screen, it before returned
a rectangle that&apos;s at INT_MIN, causing the window to disappear and even
triggering asserts when that geometry was used in some calculations.


(cherry picked from commit 2f8a86034baeb9c238fbf20f772b23cac659e073)

Co-authored-by: Xaver Hugl &lt;xaver.hugl@kde.org&gt;

M  +7    -6    src/rules.cpp
M  +1    -2    src/rules.h
M  +3    -3    src/x11window.cpp
M  +7    -5    src/xdgshellwindow.cpp
M  +1    -1    src/xdgshellwindow.h

https://invent.kde.org/plasma/kwin/-/commit/f0c8aabceed528a56ece0b579e32f50a19d379cb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>