Git Product home page Git Product logo

win11disableroundedcorners's Introduction

Win11DisableOrRestoreRoundedCorners

A simple utility that cold patches the Desktop Window Manager (uDWM.dll) in order to disable window rounded corners in Windows 11. Tested on build 22000.194.

Precompiled binaries are available in Releases.

To successfully patch and not brick your system, make sure you have only one dwm.exe process running. If you have multiple, connect normally to Windows, not using remote desktop or something similar.

Application requires active Internet connection when patching in order to download symbol files for uDWM.dll.

It is preferable but not mandatory to run the files from a separate directory. The app will temporarily place 2 files: uDWM.dll and uDWM.pdb in the directory they are in, overwriting any existing files.

Original uDWM.dll is backed up as uDWM_win11drc.bak in %windir%\System32.

Consult the source code if you want to patch manually, which is also quite advisable, it only takes changing a few bytes in the uDWM.dll file.

Please make a backup of the original uDWM.dll file before using so you can restore properly in case something is messed up. Use this software at your own risk.

To restore rounded corners, run the application again. After uninstalling, it is recommended to run sfc /scannow in an elevated command window to restore proper file permissions to uDWM.dll.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

win11disableroundedcorners's People

Contributors

valinet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

win11disableroundedcorners's Issues

Suggestion:

EN:
When Win10EnableRoundedCorners? XDDD By the way, I'm romanian too XD

PC doesn't boot up

I run exe and then decided to remove rounded icons run exe again and PC has frozen. Now when I boot up it's just infinite loading?

PXL_20211114_012104521

Any suggestions how to repair it?

"Unable to restore DWM" error

Hi all, I was using DisableRoundedCorners and then updated to newer version and when I ran the .exe file again it said "Unable to restore DWM".Is there any fix ?

image

Black main screen on install

Hi, after great success on several pc's. i wanted square corner on my upgraded win10 machine.

After installing win11 , and executing Win11DisableOrRestoreRoundedCorners my main display of 3, went black, reboot same result.
so i restored uDWM.dll, and i got graphics again.
so after updating win11 to latest win11 Version 10.0.22621.1702
uDWM.dll ver 10.0.22621.1485

Executing Win11DisableOrRestoreRoundedCorners.exe, same result black main screen, with graphics on the 2 other displays.
anything i can try, or log?
after restoring uDWM.dll and rebooting all screens are working again.

please advice :)

This Does Nothing.

This program has no effect on the latest versions of Windows 11.

I would advise an update to rectify this.

Black screen while dragging window

Basically the problem is that, when I drag a window around the screen, the background would turn black. Taskbar not influenced, just the other windows and the wallpaper (with all the desktop icons). Then the screen would return normal after dragging.

This issue only happens with some certain windows. For instance, dragging task manager and registry editor does not trigger this, but Microsoft Edge does, and so does terminal and many other apps.

To add more details, I am using the dev channel Windows 11 pro, with version 10.0.23545.1000.

ARM

Will this patch work properly on ARM versions of Windows 11? That’s what I’m running on my Mac. I don’t want to try without asking in case it downloads the wrong DLL.

Restoring problem under 22000.258 and few comments on improvement

Hello, great work, I was waiting for such solution :)

Few comments:

  1. restore from backup doesn't work on 22000.258 - dwm is crashing and can't run properly, restart doesn't help, black screen with spinner, from the login sound I can say that system starts properly, just the window manager can't start.

  2. can you make it work offline? what's about this symbol downloading, is this really necessary?

  3. is it possible to make buttons and menu selection squared again as well (I mean classic win32 applications, not modern ones)? it's stays rounded for now

  4. after disabling rounded corners explorer menu has white border when dark theme is enabled, it should have taken the menu border from accent color

Desktop is completely black.

When I opened the exe file for a second time (to disable it), my entire desktop turned black. But I think it's just a window, because when I press that button on the right of the taskbar that minimizes all windows, my desktop is back to normal. I have no idea how to fix it, I've tried closing some exe files with Task Manager that I thought might be causing it, but nothing worked. I'm pretty sure it's not a different app causing this, because it happened right after I opened Win11DisableOrRestoreRoundedCorners.exe.

brush on Paint.NET squared

I only encountered this problem:

in Paint.NET (version 4.3.12 but I dont think its a version problem or even paint.net) the circle representing the brush cursor in the software has changed from circular (normal) to squared (precisely a square)

Im sure of this because I dont use additional brushes in paint.net

this tweak is a great change (but not this issue), I hate the round edges on the windows

Round corners restored

After the latest patch (KB5006674) corners reverted to round and the program now reads "Unable to restore DWM."
Please advise accordingly

EDIT: Fix Found, need to delete the .bak manually and the patcher works properly.
Btw, thanks for your great work

Disable MFC and UWP rounded corners

For MFC apps and win32 apps,buttons and textboxes have rounded corners.
For UWP flyouts like the "restored Windows 10 network" , buttons have rounded corners.
Is there a way to fix this?

Error, Unable to restore DWM

As of today's latest 11 updates, it appears this approach no longer works? I receive the error "Unable to restore DWM"

White outline

Not sure if this is intended or not, but there is a white outline surrounding most old-style context menus after applying the patch. Could it be removed?
image

pc bricked

Pc showing a black screen with my curser after trying to disable. help

Broke DWM

it didn’t restore properly and it broke my whole installation.

Successfully changed DACL. Unable to prepare for replacing system file.

Successfully changed DACL.
Unable to prepare for replacing system file.

This error showed up what do i do also there is two of the backups?!
resim

Edit: If I run the exe again it kills dwm process but There is still Rounded corners I tried deleting the backups the
uDWM_win11drc.bak this file can be deleted, and i deleted it still same
uDWM_win11drc.bak1 I cannot delete this one tho

edit : I ran sfc /scannow
and chkdsk
But still the same

Rounded Corners are back!

With the latest cumulative update (KB5006746) bringing the Windows 11 build to 22000.282, the DWM file has been updated again and it lost all its sharp corner goodness!

This is the console output I'm getting:

Unable to determine function address.

Can you please fix it?

Weird margin in context menus

Hi Valentin-Gabriel,

firstly I want to thank you for this plugin.

Personally I don't have problem with rounded windows, I've just decided to use it order get rid of the weird, annoying padding in old-style context menus. It's default behavior when you change back context menu so it is Window's bug, and this is be more feature request rather than reporting a bug. Find please the screenshot bellow:

screenshot

I have set back rounded corners, but with plugin installed it is the same obviously. I am wondering how complex it would be to fix that problem within your plugin.

Thank you in advance for considering it.

After the updates, the corners are rounded again

Hello,

I have an annoying problem. In build 22000.556, the previously activated tool named "Win11DisableRoundedCorners" stops working. Enabling this tool will result in the error that the old DWM cannot be restored. Can it be fixed without damaging the DWM (which restores Windows Basic, which causes the system to stop working properly)?

Greetings,
Onmp314

[FEATURE] Disable window borders

Hey!

I was thinking if it'd be possible to remove the win11 borders? I'd like to just keep the window look like it's maximized.

Maximized:
image

Normal:
image

That whiteish 1px border is triggering me very much, do you think you could get rid of that as a feature in this project or maybe a separate project?

sfc /scannow wont let me patch again

I ran sfc /scannow, but now i cant go back to box corners, all i ask for is a way to force it to install or uninstall, regardless of the state of dwm, like a command line argument:

Win11DisableOrRestoreRoundedCorners.exe --restore
Win11DisableOrRestoreRoundedCorners.exe --patch

Every time i run the patcher it tells me it cant restore dwm
(it's already original, and it doesn't have the perms to do so)

Error

Hello, When I open the executable It shows an error that says, Unable to restore DWM. Can anyone help me with this error?

Cant install nvidia drivers

when this is installed, the nvidia driver installer doesnt have permissions to restart the dwm.exe process so the install fails

Interferes with SFC /SCANNOW

If you're to run the sfc /scannow command in the command prompt or terminal with the modified uDWM.dll installed it will be detected as a corrupted file, and the original uDWM.dll will automatically be restored on the next system start up- now when you try disable the round corners again the prompt outputs an error that states it failed to restore.

Message "Unable to restore DWM" running the Program

Ah, sorry I just realised this was old news! I tried the work-around of deleting uDWM_win11drc.bak and magic my problem is gone :-)

G'day Team,

I downloaded this App a couple of weeks back to get rid of the puerile Rounded Corners from Forms and Dialog Boxes in Windows 11. All good then.

But this afternoon Windows Update installed 10.0.22000.918 and the Rounded Corners were back.

And now running your App gets the "Unable to restore DWM" consistently and I am stuck with the "kiddie-proof" Windows.

Cheers, Paul

Unable to find pattern in file

When I run the executable as administrator from the file explorer I get the following error.

Function address is: 0x227a4
Unable to find pattern in file.

For the sake of it, I copied the "uDWM.dll" file that was outputted alongside the executable in my Downloads folder & pasted\overwrote it in the "C:\Windows\System32" directory using the copy command in the WinRE command prompt after locating my Windows drive letter, and no changes were made to the corners upon continuing to Windows 11 afterwards.

Video: https://streamable.com/bl8hix
Screenshot: https://i.imgur.com/pCIqLNQ.png
Windows 11 Dev Build 22468.1000

Uninstallation?

how can i bring back the round corners? its bugging some uwp apps, mostly snipping tool and notification center

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.