{"id":13730910,"url":"https://github.com/rossy/borderless-window","last_synced_at":"2025-04-07T12:07:32.874Z","repository":{"id":60952039,"uuid":"62138018","full_name":"rossy/borderless-window","owner":"rossy","description":"A minimal borderless window with the Windows API","archived":false,"fork":false,"pushed_at":"2023-10-27T10:25:08.000Z","size":27,"stargazers_count":326,"open_issues_count":1,"forks_count":23,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-31T10:08:58.937Z","etag":null,"topics":["borderless","c","cc0","public-domain","windows","windows-api","windows-desktop"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rossy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-28T12:14:29.000Z","updated_at":"2025-03-21T07:30:07.000Z","dependencies_parsed_at":"2024-11-14T21:32:48.743Z","dependency_job_id":"68b1cc03-a255-4d1b-9dbe-7095f3c28dac","html_url":"https://github.com/rossy/borderless-window","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossy%2Fborderless-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossy%2Fborderless-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossy%2Fborderless-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossy%2Fborderless-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rossy","download_url":"https://codeload.github.com/rossy/borderless-window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["borderless","c","cc0","public-domain","windows","windows-api","windows-desktop"],"created_at":"2024-08-03T02:01:21.299Z","updated_at":"2025-04-07T12:07:32.844Z","avatar_url":"https://github.com/rossy.png","language":"C","readme":"borderless-window\n=================\n\nMany Windows applications choose to remove the system window borders on their\nmain window. The naive way of doing this is to create a popup window (with the\nWS_POPUP style) instead of an overlapped window, however popup windows are more\nsuited to things like splash screens and other overlays, not main application\nwindows. They lack a number of useful behaviours such as window snapping and\nthe window menu, so they can be frustrating for users who expect these\nbehaviours.\n\nThe proper way to create a borderless application window is to create a regular\noverlapped window and remove the borders by expanding the client area. This is\nwhat Office, Visual Studio, iTunes and UWP CoreWindows do, however doing this\nexposes some quirks in the windowing system that must be worked around in each\napplication.\n\n**borderless-window** is a minimal demonstration of how to work around these\nquirks. It creates a window that:\n\n- Works with window snapping, including double-click to snap vertically\n- Works with Aero Flip 3D\n- Obeys the \"minimize all\" command (Win+M)\n- Obeys the cascade and tile commands\n- Shows a window menu when Alt+Space is pressed\n- Does not cover the taskbar when maximized\n- Does not disable auto-hide taskbars when maximized\n- Casts a drop-shadow, like other top-level windows\n- Has hide, show, maximize, minimize and restore animations, like other\n  top-level windows\n- Can be resized by the user\n- Does not accumulate visual corruption in the client area from the hidden\n  window borders when the window is activated, the window text is changed or\n  the window menu is opened\n\nBuilding\n--------\n\nA Makefile is included for mingw-w64 GCC. The C source should also compile in\nVisual Studio 2015 with a recent Windows SDK. The generated binary should be\ncompatible with Windows Vista and up. It will not work unmodified on Windows XP\ndue to the hard dependency on dwmapi.dll.\n\nCopying\n-------\n\nThis project is a demonstration of something simple that is made unnecessarily\ndifficult by quirks in the Windows API. In order to be as useful as possible to\nas many application developers as possible, it is placed in the public domain.\nAttribution would be appreciated, but is not required (after all, this stuff\nshould have been documented by Microsoft.)\n\nTo the extent possible under law, the author(s) have dedicated all copyright\nand related and neighboring rights to this software to the public domain\nworldwide. This software is distributed without any warranty.\n\n[![CC0](http://i.creativecommons.org/p/zero/1.0/80x15.png)](http://creativecommons.org/publicdomain/zero/1.0/)\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frossy%2Fborderless-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frossy%2Fborderless-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frossy%2Fborderless-window/lists"}