patch to fix dedicate frame

mujo <[email protected]> Tue, 15 May 2018 05:25:23 +0000
Newsgroups gmane.comp.window-managers.ratpoison.devel
Message-ID <[email protected]>
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I noticed the dedicate frame functionality to toggle promiscuous
and chaste modes was broken.
Attached is a one-line fix.

-- 
[email protected]
SDF Public Access UNIX System - http://sdf.org

--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="fixdedicate-20180514-b42faf8.diff"

diff --git a/src/window.c b/src/window.c
index dd65a93..12f9f96 100644
--- a/src/window.c
+++ b/src/window.c
@@ -410,7 +410,7 @@ find_frame_non_dedicated(rp_screen *current_screen)
 
   list_for_each_entry (screen, &rp_screens, node)
     {
-      if (current_screen == screen)
+      if (current_screen != screen)
         continue;
 
       list_for_each_entry (cur, &screen->frames, node)

--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ratpoison-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ratpoison-devel

--wRRV7LY7NUeQGEoC--