<?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>490049</bug_id>
          
          <creation_ts>2024-07-10 20:17:41 +0000</creation_ts>
          <short_desc>[Feature] Make it possible to test window rules</short_desc>
          <delta_ts>2025-02-11 11:52:06 +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>rules</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Raman Gupta">rocketraman</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>dion</cc>
    
    <cc>fanzhuyifan</cc>
    
    <cc>isma.af</cc>
    
    <cc>JThundley</cc>
    
    <cc>smowtenshi</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>2336372</commentid>
    <comment_count>0</comment_count>
    <who name="Raman Gupta">rocketraman</who>
    <bug_when>2024-07-10 20:17:41 +0000</bug_when>
    <thetext>SUMMARY

Because Wayland does not allow applications to save and remember their window positions, I have been using Window Rules a lot more. However, one thing I&apos;ve found difficult with Window Rules is validating / testing them.

First of all, positioning rules have to be set to &quot;Force&quot; in order to test a rule, when one really wants the rule to be &quot;Initially Apply&quot;. So in order to test it, we have to change the position and screen to &quot;Force&quot;, click &quot;Apply&quot;, and then change it back.

Secondly, if a window rule does not trigger, we have no idea why. In a case I encountered, I figured out that an earlier window rule in the list was triggering instead, but the UI provides no feedback or indication that that was the case -- the only thing I saw as a user was that the window rule I was testing did not trigger.

It would be nice if window rules provided some UX that allowed users to test their rules. I recognize that this might actually be quite complex to implement. It may be easier to fix problems like https://bugs.kde.org/show_bug.cgi?id=15329 so that we don&apos;t have to rely on window rules so much in the first place.

Linux/KDE Plasma: 
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.6-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × 12th Gen Intel® Core™ i9-12900KS
Memory: 124.8 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: ASUS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2342917</commentid>
    <comment_count>1</comment_count>
    <who name="">fanzhuyifan</who>
    <bug_when>2024-08-04 07:11:03 +0000</bug_when>
    <thetext>Makes sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2364439</commentid>
    <comment_count>2</comment_count>
    <who name="JT Hundley">JThundley</who>
    <bug_when>2024-10-10 18:15:06 +0000</bug_when>
    <thetext>You put so elegantly into words the struggle I&apos;ve gone through with window rules for years.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>