Giter Site home page Giter Site logo

cubes-without-borders's Introduction

Cubes Without Borders

GitHub Build Status Version Modrinth CurseForge License

Cubes Without Borders Icon

A mod that allows you to play Minecraft in a borderless fullscreen window. Whether you're using Linux, macOS, or Windows, you can keep the game open while interacting with other applications on a different monitor (or even directly on top of the game window), without constantly causing Minecraft to minimize.


Usage

The mod doesn't introduce any additional configuration screens. Instead, it utilizes the existing Video Settings tab, where you would expect to find an option of this kind, and extends the pre-existing Fullscreen setting, adding a third option to it: Borderless.

So, depending on whether you have Sodium installed, you may find the option in question here:

Video Setting Video Setting (Sodium)

Simply choose the new Borderless option, click Apply and/or Done, and you are good to go.

Additionally, the mod introduces a --borderless startup flag for those interested, which works the same way as the existing --fullscreen one, but forces the game to start as a borderless fullscreen window instead.


Notes

KDE Plasma

In case you want to open a Picture-in-Picture video on top of your Minecraft gameplay, while you painstakingly mine obsidian pillars in The End for a new mega-project, you may notice that it doesn't quite work as you would expect on KDE Plasma - Minecraft simply renders on top of the supposedly always-on-top window.

Unfortunately, there's nothing I can do on my side, since a borderless fullscreen window is still a fullscreen window, and this behavior is explicitly defined by the FreeDesktop spec, which was written long before it became common for people to display PiP windows on top of their fullscreen games. GNOME users don't suffer from this problem, because GNOME simply broke the specification without even attempting to start a discussion around it and change it for everyone's benefit, which is a very GNOME thing to do.

However, you can define a simple window rule to change the PiP's layer to something that renders on top of fullscreen windows, such as OSD or Overlay. With this in place, you will be able to put PiP windows on top of Minecraft, other games, and any other fullscreen apps for that matter. Here's an example for Firefox users:

KDE Plasma - Window Rules


Installation

Requirements:

  • Minecraft 1.21.x
  • Fabric Loader >=0.15.11

You can download the mod from:


Build

Requirements:

  • JDK 21
git clone https://github.com/Kir-Antipov/cubes-without-borders
cd cubes-without-borders

./gradlew build
cd build/libs

License

Licensed under the terms of the MIT License.

cubes-without-borders's People

Contributors

kir-antipov avatar mpustovoi avatar yichifauzi avatar dessader avatar

Stargazers

kp avatar Emanuele De Stefani avatar  avatar Lura avatar Yuto Takano avatar Yakov Till avatar TwoMuchRed avatar Vico avatar  avatar  avatar Nukecraft5419 avatar nolep avatar Kasuma avatar  avatar Rozbiynik avatar  avatar

Watchers

 avatar

cubes-without-borders's Issues

Color filters on Windows11 not working when Fullscreen

Multiple color filters (for example Grayscale, Grayscale inverted, tritanopia, protanopia, deuteranopia, and Inverted) do not work when in Fullscreen. This is affecting gameplay for me

Even when choosing Borderless as Fullscreen, it still has the same effects

I can't send demonstrative footage because Game Bar from Windows doesn't support it somehow

Wrong status after hotkey toggle

Using version 1.1.0+1.20 on Minecraft 1.20.4.
When the user toggles the full screen via hotkey F11 (and possibly even by forcing it through the launcher, but I didn't test that), then the status ON/OFF/Borderless on vanilla/Sodium video settings becomes incorrect.

Toggling F11 will not persist borderless state

Using version 1.1.0+1.20 on Minecraft 1.20.4.
When the user toggles full screen with the keybind F11, the mod will toggle between normal fullscreen to normal windowed mode, borderless state is not remembered.

Breaks Discord game overlay

Enabling the regular or borderless fullscreen settings disables the Disord game overlay and game detection until the setting is disabled AND the game is restarted, does not happen without this mod.

Mark as 1.20.5-1.20.6 compatible

I saw this mod being included in a 1.20.6 modpack and wanted to try it out for myself. However, searching for the mod in Prism Launcher gave no results as it is not marked as 1.20.6-compatible. I just grabbed the latest version and it works perfectly fine.

I would make it a pull request but I am pretty sure one cannot interact with Modrinth/CurseForge versioning via a git repo.

Bring back the old borderless window feature

Hey, I noticed that on your current mod (2.0.1) you changed the way the borderless window works. While this does prevent the game from going black for a split second when switching to another monitor for example, this increases the games input lag. This is because the Windows Desktop has inbuilt v sync. Playing any game in windowed mode therefore turns on v sync.

Because of that I either ask you to create another option to choose from or backport the change that has been made.

Borderless windowed not recognized by OBS game capture

When using Game Capture in OBS Studio, OBS is not able to recognize Cubes Without Borders borderless as full screen. I used to use BorderlessMining but since it hasn't received any attention since January my eye is on Cubes Without Borders to replace it. OBS is able to recognize BorderlessMining borderless as a game capture.

It would be awesome if Cubes Without Borders would be recognized, just like BorderlessMining is! Not sure if you want to go through the trouble to support this, but I use OBS to record Minecraft footage. I tried Streamlabs too, but that doesn't recognize anything, so I wouldn't even bother looking into that haha

Not compatible with pip

Minecraft version: 1.20.6
Mod Version: 2.1.0+1.20

What happen rn:
image

What can happen if supporting pip:
image
(This instance is using mod:Borderless Mining, which doesnt support 1.20.6 not 1.21)

Borderless always goes to the "Main" display

Hey!
Due to my setup I'm required to set my "Main" display to a different display than what my actual main display should be.
Could you implement support to change which display is used for borderless?
Thanks!

Prevent foreground

Hi, not sure if it is even possible, I looked everywhere, I even tried my luck with python but I can't seem to find a way to prevent minecraft from coming to the foreground when fullscreen. I love playing the game and watch videos using popout window from chrome/opera browsers, they work usually quite well for every other game at fullscreen, but with no luck with minecraft. Any chance that you may find a way to add an option to your mod that prevent minecraft forcing itself to foreground? Thanks a lot for your mod and the effort put in it!

Breaks Distant Horizons with shaders

Distant Horizons released a new version with support for shaders this week. Also, I am trying Cubes Without Borders to replace Borderless mining, because it goes unsupported for very long stretches of time. Somehow CWB breaks the shaders in DH. This doesn't seem to happen after reloading the world.

I added some screenshots of what is happening.

Steps to reproduce:

  • Install Distant Horizons 2.1 / Sodium / Iris / Indium
  • Install some shaders (for example Photon)
  • Turn shaders on
  • Switch to borderless windowed

With different shaders:

Photon
image
Complementary Reimagined
image

Borderless functionality only works on main monitor, when set to second monitor (extended projection) it causes flickers on alt tab/defocus.

Using the latest version for 1.20.2, and I've been experiencing what I described in the title of this issue. Note that this issue in question causes external screenshotting programs to mess up and capture a still of usually either a black screen or the pause menu instead of the game screen proper.

Again, this only happens on external monitors, not the main monitor, when using an "extended" projection. Also on windows 10 if that helps.

`v2.0.0` causes display resolution issues

After installing your mod in my custom modpack for version 1.21, when I start the game, my PC interface size greatly increases for a few seconds.
A black screen appears first. Then my screen resolution gets to about 800×600 or so (all fonts and windows become huge) until the main Minecraft menu appears. After that, everything comes back to normal. And this happens every time you start it.
With other Minecraft versions, I didn't have such a problem. Perhaps the presence of the fullscreeNO mod helped. However, it's not yet available for 1.21. I force-installed it, but it doesn't seem to work.
Logs. No crash-report.

Flash when switching windows

There is a brief black flash when switching between MC Borderless and another monitor. Is this something that can be changed or is it just a part of the game?

AMD dGPU on Windows causes the game to freeze

Hi!

I have been using this mod without an issue for several days now using my laptop's integrated GPU. I wanted to test out the performance difference between the iGPU and dGPU but can't get my game to work properly in borderless fullscreen when using the dGPU. Normal fullscreen and windowed mode work fine on the dGPU.

Here is a video of the issue.

As an aside, this is the weirdest bug I've come across, I think..

Thanks,
~Luke

Flickering when paired with BlurredWindow

the titlescreen flickers randomly, which is understandable, however ingame there is also flickering

Badlion.Client.2024.07.05.-.19.23.06.04.DVR.mp4
Badlion.Client.2024.07.05.-.19.34.33.06.mp4

Weird resolution shift when starting the game

Using 2.1.0+1.21:

When i boot the game with fullscreen enabled, the main screen seems to reduce the resolution quickly (don't know exactly for what, but seems to be a 4:3 one), when returns to the normal (and when the game actually appear fullscreen, in Mojang logo phase), and all the other windows get shifted around due to the resolution change.

I suspect this mod because all the other games i play in fullscreen (either starting or switching to later), like Project Zomboid and some emulators, doesn't do this issue.

I'm playing in a laptop with integrated screen in 1080p with 125%dpi, meanwhile the second screen is an old one (using even a VGA to HDMI adapter), resolution at 1360x768, 100% dpi.

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.