-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run X11 windows without windows manager decoration #530
Comments
What do you mean by "window manager decoration"? Any screenshot would be helpful. |
@davidhunter22, thanks for trying out WSLg. Unfortunately that's not possible for now, unless application supports "fullscreen" (such as Firefox) then application takes entire screen and no window decoration. May I ask why this helps? Thanks! |
It was more out of interest, I was just seeing what features were supported versus a native X11 Windows manager. |
Ah just found this, #67 which seems to answer my question on window managers |
Single biggest show stopper for me before switching from |
@GiGurra, thanks for feedback, we are aware that the "second one" is asked various occasions. Regarding to no window decorations, @AntonSmolkov @sweetwong and @GiGurra, do you want only when window is at fullscreen? and without those frame, how do you expect you can put back window to non-fullscreen? Or even no frame at windowed (non-fullscreen), how it's expected to be moved? Do know have any model scenario we can refer to? thanks! |
@hideyukn88 Thanks for the answer. No definitely not only full screen. In fact full screen is something I am less interested in. The best example is the IDE intellij idea. You can download the free community version to see what it currently looks like inside wslg, and compare with how it behaves with a native windows installation. Basically it always runs without decoration (it renders its own menus and minimize/maximize buttons etc in its own format) Native windows/native linux/native mac: wslg: ideal result: |
@GiGurra, thanks for info. By looking at native Linux case, particularly running on Ubuntu desktop, the window frame (and title bar) seems still rendered by their Window manager, but it has more consistent visuals with rest of the desktop. So, to clarify the request here would be, it is not removing the window decorations, but do have window decorations with match to the rest of desktop and themes. Regarding to fullscreen case, it looks on JetBrains IDE, "enter fullscreen mode" option (from View->Appearance) is not available on WSLg, but it is available on Ubuntu desktop. I will need to investigate why. Also, once JetBrains completed the Wayland native support, then the current Window frame won't be used. Thanks! |
Ah, yes you are right. I had completely forgotten that ubuntu does keep some decoration at the top (but not these thick lines all around). When I last used native ubuntu for my dev machine I was actually running some decoration removal thing, dont remember exactly what :) For reference, here is what wsl + VcXsrv (wsl rendering through x server implementation running on windows) looks like right now: |
Can we at least change the color to make it less obtrusive on a dark themed screen? |
TBH that would be a really cool feature |
Any update on this? WSL has gone out of preview and yet this issue is still present. Most of third party softwares that emulates X Servers managed to use native windows. Yet WSLg still has this ugly window manager decoration (let's be honest for a second, it looks like it wasn't updated for at least 15 years), and it doesn't even support basic window snapping, even less the more advanced features that we have with a native window. This is a huge deal breaker for WSLg. I was excited for the GUI apps support on Windows 10, but this alone makes me switch back to X410. |
+1 for This Issue. VcXsrv is still better in Window Management than WSLg. |
@theonlyfoxy, thanks for checking, we are making progress. if you are on the latest WSLg and Windows 11 (all update applied), please create below file with below contents, then window can be snapped by Win+Left or Right key, thanks! C:\Users\[Your User Name]\.wslgconfig
|
What about the borders around the window and style of buttons? |
Without borders, the window is offset from the top left. I've noticed this in my own development as well. Having a maximized borderless window results in: Everything you click on will be offset as well. Just wanted to add, you guys are doing an awesome job! This helps my graphical linux development too!! Thank you for all the hard work you're doing! @hideyukn88 and everyone! |
@cyraid how did you manage to remove the window borders? I think it's the whole point of this issue and it seems you've found some kind of magic to achieve it 😅 |
@zodiia Oh, that's just a borderless window. You have to specify the For programs that you haven't written, there's not much you can do other than ask Microsoft to include Decoration options with WSLG (or at least environment variables to disable decorations on windows) as they're the current window manager, unless you can use a custom window manager with WSLG which I'm not sure you can currently? (based off of what I've been reading) But for those screenshots: With Chrome in Linux, you can set the window to use no titlebar (so I'm guessing they're just setting the decorator hints to false). Btw, to fix that Chrome issue, you can set the |
Hi, is there a solution to this problem, now idea still has a big box wrapped around it |
No solution yet, however we might be getting closer to it with Jetbrains products specifically, as they have recently released features for integrating the top bar with the window, just like it is on windows. We might get something better for IntelliJ, CLion, ... soon |
It will be nice if we could simply set the colors of the borders, I mean, there are some constraints totally understable regarding usability and compatibility, but, I believe the simples solution is the best one. |
Is there any progress here? |
@zodiia I think window border color following Windows system theme(Light or Dark) is a simple solution. |
lol my linux broke and I wound up having to use WSL and now PyCharm ugly af. What are we doin here guys? Where's the code for these titlebars? We'll fix it ourselves. |
Why hasn't a seemingly straightforward request been accommodated after several years? Alternatively, could you provide guidance on how we might resolve this issue ourselves? |
I've found this can be overridden in Emacs with the See https://www.gnu.org/software/emacs/manual/html_node/elisp/Management-Parameters.html#undecorated. Didn't manage to make it work in If you can't make it work for some reason, |
Any updates on this? Is this still needed? What about disabling the white window chrome? |
Any news? |
any news? |
+1 this is still a very annoying issue nearly 3+ years later |
+1 this is the only thing stopping me from liking my setup. |
@davidhunter22 , @sameert89 Enjoy!
|
I think the whole 'remote desktop' approach isn't entirely too smooth IMO. You're not seeing a native solution, you're seeing a Remote Desktop Protocol in action, think using Remote Desktop into someone's machine. It 'kinda' works, 'cause you can do things like gaming in the cloud with such techniques, but you'll always have that latency and I don't think video approach is the best. Realistically the best approach would be a native Linux Display Driver. But of course Microsoft may be worried about Kernel boundaries, and running things in Kernel land. I wonder if Microsoft is planning such, and the current RDP is a placeholder? Would like to know thoughts of Microsoft developers on this one. |
@cyraid I recommend you to watch this video https://www.youtube.com/watch?v=EkNBsBx501Q and read https://devblogs.microsoft.com/commandline/wslg-architecture/ |
I've perfectly solved this problem!! Bash Script: #!/bin/bash
# Check if any arguments were passed
if [ $# -eq 0 ]; then
echo "Usage: $0 <window_name>"
exit 1
fi
# Use the passed argument as the window name
window_name="$1"
# Find all windows matching the window name
window_ids=$(xdotool search --name "$window_name")
# Check if any windows were found
if [ -z "$window_ids" ]; then
echo "No windows found with the name '$window_name'"
exit 1
fi
# Loop through all found window IDs and perform the operations
for window_id in $window_ids; do
echo "Processing window ID: $window_id"
# Remove window borders
xprop -id $window_id -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "2, 0, 0, 0, 0"
# Set window to fullscreen
wmctrl -ir $window_id -b add,fullscreen
done
echo "All windows have been processed" Use: # bash script name: fullscreen, for example: fullscreen xeyes
fullscreen YOUR_WINDOW_NAME |
I tried it on phpstorm bot did not work. |
Legend! How do you even figure this out? Thanks a bunch! |
@sameert89 chatgpt |
@meminuygur When running this command, ensure that PhpStorm does not launch in a maximized state. |
Hi, |
Awesome @moisei! Now we just need a way to make IntelliJ (& friends) render its own buttons again. |
Is it possible to run an X11 windows without the window manager decoration, I believe this is sometimes called frameless or borderless.
The text was updated successfully, but these errors were encountered: