Switch to Always Center Patch

- Disable center and center transient windows patches
- Enable always center patch
This commit is contained in:
Sravan Balaji
2021-09-19 09:30:51 -04:00
parent d94db1a658
commit c6b3bf4830
2 changed files with 6 additions and 6 deletions

View File

@ -1525,7 +1525,7 @@ All floating windows are centered, like the center patch, but without a rule. Th
https://dwm.suckless.org/patches/alwayscenter/ https://dwm.suckless.org/patches/alwayscenter/
#+begin_src c :tangle patches.def.h #+begin_src c :tangle patches.def.h
#define ALWAYSCENTER_PATCH 0 #define ALWAYSCENTER_PATCH 1
#+end_src #+end_src
*** Aspect Resize *** Aspect Resize
@ -1613,7 +1613,7 @@ This patch takes precedence over centeredwindowname, alwayscenter and fancybar p
https://dwm.suckless.org/patches/center/ https://dwm.suckless.org/patches/center/
#+begin_src c :tangle patches.def.h #+begin_src c :tangle patches.def.h
#define CENTER_PATCH 1 #define CENTER_PATCH 0
#+end_src #+end_src
*** Center Transient *** Center Transient
@ -1627,7 +1627,7 @@ It should be noted that in dwm transient windows are not subject to normal clien
This patch centers transient windows on the screen like the center patch does. Note that the 6.2 center patch piggy-backed on the updatewindowtype function to ensure that all dialog boxes were centered, transient or not. This function was removed in relation to adding wintype as a client rule filter, hence this no longer works out of the box. This patch restores previous behaviour with the center patch. This patch centers transient windows on the screen like the center patch does. Note that the 6.2 center patch piggy-backed on the updatewindowtype function to ensure that all dialog boxes were centered, transient or not. This function was removed in relation to adding wintype as a client rule filter, hence this no longer works out of the box. This patch restores previous behaviour with the center patch.
#+begin_src c :tangle patches.def.h #+begin_src c :tangle patches.def.h
#define CENTER_TRANSIENT_WINDOWS_PATCH 1 #define CENTER_TRANSIENT_WINDOWS_PATCH 0
#+end_src #+end_src
**** By Parent **** By Parent

View File

@ -99,7 +99,7 @@
#define BAR_WINTITLEACTIONS_PATCH BAR_AWESOMEBAR_PATCH || BAR_TABGROUPS_PATCH || BAR_FLEXWINTITLE_PATCH #define BAR_WINTITLEACTIONS_PATCH BAR_AWESOMEBAR_PATCH || BAR_TABGROUPS_PATCH || BAR_FLEXWINTITLE_PATCH
#define ALWAYSCENTER_PATCH 0 #define ALWAYSCENTER_PATCH 1
#define ASPECTRESIZE_PATCH 1 #define ASPECTRESIZE_PATCH 1
@ -115,9 +115,9 @@
#define AUTORESIZE_PATCH 1 #define AUTORESIZE_PATCH 1
#define CENTER_PATCH 1 #define CENTER_PATCH 0
#define CENTER_TRANSIENT_WINDOWS_PATCH 1 #define CENTER_TRANSIENT_WINDOWS_PATCH 0
#define CENTER_TRANSIENT_WINDOWS_BY_PARENT_PATCH 0 #define CENTER_TRANSIENT_WINDOWS_BY_PARENT_PATCH 0