hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.63k stars 829 forks source link

Window takes up the size of the display after toggling floating mode. #7312

Open svin24 opened 1 month ago

svin24 commented 1 month ago

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 9a09eac79b85c846e3a865a9078a3f8ff65a9259 (props: bump version to 0.42.0). Date: Wed Aug 7 22:17:10 2024 Tag: v0.42.0, commits: 5069 flags: (if any) System Information: System name: Linux Node name: holobook Release: 6.10.3-amd64 Version: #1 SMP PREEMPT_DYNAMIC Debian 6.10.3-1 (2024-08-04) GPU information: 04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne [1002:164c] (rev c1) (prog-if 00 [VGA controller]) os-release: PRETTY_NAME="Debian GNU/Linux trixie/sid" NAME="Debian GNU/Linux" VERSION_CODENAME=trixie ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" plugins: ======Config-Start====== Config File: /home/john/.config/hypr/hyprland.conf: Read Succeeded autogenerated = 0 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=eDP-1, 1920x1080, 0x0, 1 monitor=HDMI-A-1, 1920x1080@60, -1920x-600, 1 # LAPTOP LID STUFF bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 1920x1080, 0x0, 1" # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch # exec-once = waybar & hyprpaper & firefox # exec-once = /usr/libexec/kf6/polkit-kde-authentication-agent-1 exec-once = mako exec-once = swaybg -i ~/.config/hypr/wallpaper.png #exec-once = swww-daemon #exec-once = ~/.config/scripts/swww-random /megumin/Wallpapers/Artwork/ exec-once = hypridle # exec-once = steam -silent # exec-once = nm-applet exec-once = waybar exec-once = dbus-update-activation-environment --all --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP & kwalletd5 # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # Set programs that you use $bemenu-run = ~/.config/scripts/bemenu-run $bemenu-drun = ~/.config/scripts/bemenu-drun #$terminal = kitty $terminal = alacritty $fileManager = $terminal -e lf $screenshot = grim -g "$(slurp -d)" - | wl-copy # Some default env vars. env = XCURSOR_SIZE,24 # env = QT_QPA_PLATFORMTHEME,qt6ct env = QT_QPA_PLATFORMTHEME,KDE env = QT_AUTO_SCREEN_SCALE_FACTOR,1 # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us,gr kb_variant = kb_model = kb_options = grp:alt_shift_toggle kb_rules = follow_mouse = 1 touchpad { natural_scroll = yes } sensitivity = 0 # -1.0 to 1.0, 0 means no modification. } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 8 gaps_out = 8 border_size = 2 col.active_border = rgb(ECEFF4) col.inactive_border = rgb(2E3440) layout = master # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on allow_tearing = true } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 0 blur { enabled = true } drop_shadow = true } animations { enabled = true } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = yes # you probably want this } master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more new_status = inherit new_on_top = true } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = true } misc { # See https://wiki.hyprland.org/Configuring/Variables/ for more force_default_wallpaper = 1 disable_hyprland_logo = true } # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more device { name = wacom-intuos-s-pen output = HDMI-A-1 } #LAPTOP STUFF device { name = elan2514:00-04f3:2cf9-stylus output = eDP-1 } device { name = elan2514:00-04f3:2cf9 output = eDP-1 } # Example windowrule v1 # windowrule = float, ^(nm-connection)$ # Example windowrule v2 #windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # windowrulev2 = float,size 50% 50%,floating:1 #windowrulev2 = float,class:^(Alacritty)$ windowrulev2 = float,class:^(nm-connection-editor)$ windowrulev2 = float,class:^(NetworkTUI)$ windowrulev2 = float,title:^(Copying * — Dolphin)$ windowrulev2 = float,title:^(Moving — Dolphin)$ #windowrulev2 = float,class:^(blueman-manager)$ windowrulev2 = float,class:^(org.freedesktop.impl.portal.desktop.kde)$ windowrulev2 = float,class:^(pavucontrol-qt)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. layerrule = noanim, menu layerrule = noanim, waybar # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER $changeLang = SHIFT ALT_R # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, Return, exec, $terminal bind = $mainMod, Q, killactive, bind = $mainMod CTRL SHIFT, M, exit, bind = $mainMod, M, exec, $fileManager bind = $mainMod, F, togglefloating bind = $mainMod SHIFT, R, exec, $bemenu-drun bind = $mainMod, R,exec, $bemenu-run bind = $mainMod, SHIFT F, fullscreen #bind = $mainMod SHIFT, P, pseudo, # dwindle #bind = $mainMod SHIFT, J, togglesplit, # dwindle bind = , Print, exec, $screenshot bind = $mainMod CTRL SHIFT, L, exec, hyprlock # Move focus with mainMod + arrow keys bind = $mainMod, H, movefocus, l bind = $mainMod, L, movefocus, r bind = $mainMod, K, movefocus, u bind = $mainMod, J, movefocus, d bind = $mainMod SHIFT, H, movewindow, l bind = $mainMod SHIFT, L, movewindow, r bind = $mainMod SHIFT, K, movewindow, u bind = $mainMod SHIFT, J, movewindow, d # BRIGHTNESS bindel = ,XF86MonBrightnessUP, exec, brightnessctl s 5%+ bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 5%- bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ bind = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%- bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind = , XF86AudioPlay, exec, playerctl play-pause bind = , XF86AudioNext, exec, playerctl next bind = , XF86AudioPrev, exec, playerctl previous bind = , XF86audiostop, exec, playerctl stop # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Example special workspace (scratchpad bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod SHIFT, S, movetoworkspace, special:magic # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # laptop specific bindm = $mainMod SHIFT, mouse:272,resizewindow ======Config-End======== ```

Description

Currently when toggling floating mode on the first created tiled window on a workspace it by default tries to take up the entire display. Secondary windows created after that do not have this issue.

I am not sure if this is due to me not using specific window rules(i searched but i can't find any relating to this) but this behavior is inconsistent.

I tried this on both Hyprland 0.41.2 and 0.42.0

How to reproduce

  1. Open up an application
  2. Try floating it, notice it takes up the entire display
  3. Open up a secondary application
  4. That application does not try to take up the entire display when floating.

Crash reports, logs, images, videos

https://github.com/user-attachments/assets/4b8ca9df-9854-46ff-9efa-82e10e83cbb8

svin24 commented 1 month ago

file is corrupt? anyway you can play it with mpv

nktnet1 commented 1 month ago

@svin24 regarding the "corrupted video", it would work on Chrome - there are occasionally issues with playing mp4 on Firefox+GitHub.

Usually best to convert your mp4 to webm using ffmpeg, e.g.

ffmpeg -i input.mp4 output.webm

This is an issue I can reproduce.

svin24 commented 1 month ago

re upload as webm

floatbug.webm