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.66k stars 830 forks source link

when launching applications windows open on workspace -1 #4890

Closed odama626 closed 4 months ago

odama626 commented 6 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch HEAD at commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47 (props: bump ver to 0.35.0). Date: Mon Feb 5 01:59:02 2024 Tag: v0.35.0 flags: (if any) System Information: System name: Linux Node name: asparks-ws Release: 6.6.16-2-MANJARO Version: #1 SMP PREEMPT_DYNAMIC Sat Feb 10 09:40:02 UTC 2024 GPU information: 0c:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6900 XT] [1002:73af] (rev c0) (prog-if 00 [VGA controller]) os-release: NAME="Manjaro Linux" PRETTY_NAME="Manjaro Linux" ID=manjaro ID_LIKE=arch BUILD_ID=rolling ANSI_COLOR="32;1;24;144;200" HOME_URL="https://manjaro.org/" DOCUMENTATION_URL="https://wiki.manjaro.org/" SUPPORT_URL="https://forum.manjaro.org/" BUG_REPORT_URL="https://docs.manjaro.org/reporting-bugs/" PRIVACY_POLICY_URL="https://manjaro.org/privacy-policy/" LOGO=manjarolinux plugins: ```
hypr clients ``` Window 556304576560 -> : mapped: 0 hidden: 0 at: 0,0 size: 0,0 workspace: -1 () floating: 0 monitor: -1 class: title: initialClass: initialTitle: pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 5563044ecdb0 -> : mapped: 0 hidden: 0 at: 0,0 size: 0,0 workspace: -1 () floating: 0 monitor: -1 class: title: initialClass: initialTitle: pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 5563044e6e60 -> : mapped: 0 hidden: 0 at: 0,0 size: 0,0 workspace: -1 () floating: 0 monitor: -1 class: title: initialClass: initialTitle: pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 5563043bb4e0 -> : mapped: 0 hidden: 0 at: 0,0 size: 0,0 workspace: -1 () floating: 0 monitor: -1 class: title: initialClass: initialTitle: pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 556304637f40 -> Discord: mapped: 1 hidden: 1 at: 2572,1481 size: 2536,1387 workspace: 6 (6) floating: 0 monitor: 1 class: com.discordapp.Discord title:- Discord initialClass: com.discordapp.Discord initialTitle: Discord pid: 54289 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 556304637f40,5563044e2c90,5563044e12c0,556304673900,5563047eb780 swallowing: 0 focusHistoryID: 4 Window 55630457e180 -> : mapped: 1 hidden: 0 at: 12,12 size: 2536,1416 workspace: 2 (2) floating: 0 monitor: 2 class: Alacritty title: initialClass: Alacritty initialTitle: Alacritty pid: 21414 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 11 Window 556304596240 -> Zoom Cloud Meetings: mapped: 1 hidden: 0 at: 923,556 size: 640,510 workspace: 2 (2) floating: 1 monitor: 2 class: zoom title: Zoom Cloud Meetings initialClass: zoom initialTitle: Zoom Cloud Meetings pid: 20082 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 12 Window 556303fa6930 -> tmux: mapped: 1 hidden: 0 at: 12,12 size: 2536,1416 workspace: 3 (3) floating: 0 monitor: 2 class: Alacritty title: tmux initialClass: Alacritty initialTitle: Alacritty pid: 4473 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 10 Window 5563044e2c90 -> Slack -- 2 new items: mapped: 1 hidden: 1 at: 2572,1481 size: 2536,1387 workspace: 6 (6) floating: 0 monitor: 1 class: Slack title: Slack -- 2 new items initialClass: Slack initialTitle: Slack pid: 32923 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 556304637f40,5563044e2c90,5563044e12c0,556304673900,5563047eb780 swallowing: 0 focusHistoryID: 6 Window 5563044e12c0 -> Signal (15): mapped: 1 hidden: 1 at: 2572,1481 size: 2536,1387 workspace: 6 (6) floating: 0 monitor: 1 class: signal title: Signal (15) initialClass: signal initialTitle: Signal pid: 34189 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 556304637f40,5563044e2c90,5563044e12c0,556304673900,5563047eb780 swallowing: 0 focusHistoryID: 5 Window 55630469d5d0 -> tmux: mapped: 1 hidden: 0 at: 12,1477 size: 1261,1391 workspace: 1 (1) floating: 0 monitor: 0 class: Alacritty title: tmux initialClass: Alacritty initialTitle: Alacritty pid: 87617 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 9 Window 556304673900 -> Launch Meeting - Zoom — Mozilla Firefox: mapped: 1 hidden: 1 at: 2572,1481 size: 2536,1387 workspace: 6 (6) floating: 0 monitor: 1 class: firefox title: Launch Meeting - Zoom — Mozilla Firefox initialClass: firefox initialTitle: Mozilla Firefox pid: 158530 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 556304637f40,5563044e2c90,5563044e12c0,556304673900,5563047eb780 swallowing: 0 focusHistoryID: 3 Window 556304719cc0 -> pnpm dev: mapped: 1 hidden: 0 at: 12,12 size: 2536,701 workspace: 4 (4) floating: 0 monitor: 2 class: Alacritty title: pnpm dev initialClass: Alacritty initialTitle: Alacritty pid: 180999 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 8 Window 5563043aeb60 -> zoom: mapped: 0 hidden: 0 at: 2220,1486 size: 284,55 workspace: 1 (1) floating: 1 monitor: 0 class: title: initialClass: zoom initialTitle: zoom pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 556304791b60 -> zoom: mapped: 0 hidden: 0 at: 3492,2167 size: 694,62 workspace: 6 (6) floating: 1 monitor: 1 class: title: initialClass: zoom initialTitle: zoom pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 5563047e5160 -> hyprctl clients: mapped: 1 hidden: 0 at: 1287,1477 size: 1261,1391 workspace: 1 (1) floating: 0 monitor: 0 class: Alacritty title: hyprctl clients initialClass: Alacritty initialTitle: Alacritty pid: 214897 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 0 Window 556304811e60 -> Zoom: mapped: 0 hidden: 0 at: 3616,2088 size: 448,136 workspace: 6 (6) floating: 1 monitor: 1 class: title: initialClass: zoom initialTitle: Zoom pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 5563047a1d90 -> Calendar: mapped: 1 hidden: 0 at: 12,727 size: 2536,701 workspace: 4 (4) floating: 0 monitor: 2 class: org.gnome.Calendar title: Calendar initialClass: org.gnome.Calendar initialTitle: Calendar pid: 206035 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 7 Window 556304813960 -> Choose ONE of the audio conference options: mapped: 0 hidden: 0 at: 1052,2000 size: 456,320 workspace: 1 (1) floating: 1 monitor: 0 class: title: initialClass: zoom initialTitle: Choose ONE of the audio conference options pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 5563044fc250 -> zoom: mapped: 0 hidden: 0 at: 1098,2123 size: 362,62 workspace: 1 (1) floating: 1 monitor: 0 class: title: initialClass: zoom initialTitle: zoom pid: -1 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: -1 Window 55630465e440 -> when launching applications windows open on workspace -1 · Issue #4890 · hyprwm/Hyprland — Mozilla Firefox: mapped: 1 hidden: 0 at: 2572,1452 size: 1261,1416 workspace: 6 (6) floating: 0 monitor: 1 class: firefox title: when launching applications windows open on workspace -1 · Issue #4890 · hyprwm/Hyprland — Mozilla Firefox initialClass: firefox initialTitle: Mozilla Firefox pid: 158530 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0 focusHistoryID: 1 Window 5563047eb780 -> Zoom Meeting: mapped: 1 hidden: 0 at: 3847,1481 size: 1261,1387 workspace: 6 (6) floating: 0 monitor: 1 class: zoom title: Zoom Meeting initialClass: zoom initialTitle: Zoom Meeting pid: 20082 xwayland: 1 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 556304637f40,5563044e2c90,5563044e12c0,556304673900,5563047eb780 swallowing: 0 focusHistoryID: 2 ```
hyprland config ``` # # Please note not all available settings / options are set here. # For a full list, see the wiki # autogenerated = 0 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=HDMI-A-1,preferred,0x0,1.5 monitor=DP-1,preferred,0x1440,1.5 monitor=DP-2,preferred,2560x1440,1.5 bind = SUPER+ALT, J, changegroupactive, f # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch # exec-once = waybar & hyprpaper & firefox exec-once = waybar & hyprpaper & hypridle & ~/.config/rofi/launcher.sh exec-once = swaync exec-once = ~/.config/hypr/wallpaper-switcher.sh & disown # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf env = GTK_THEME, Catppuccin-Mocha-Standard-Lavender-Dark # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us kb_variant = kb_model = kb_options = kb_rules = follow_mouse = 1 touchpad { natural_scroll = no } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. follow_mouse = 2 } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 5 gaps_out = 10 border_size = 2 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) layout = dwindle } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 10 # blur = yes # blur_size = 3 # blur_passes = 1 layerrule = blur, waybar layerrule = blur, rofi drop_shadow = yes shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) } group { col.border_active = rgba(33ccffee) rgba(00ff99ee) 45deg col.border_inactive = rgba(595959aa) groupbar { font_size = 14 height = 20 font_family = MonoLisa Nerd Font col.active = rgba(33ccffee) rgba(33ccffee) col.inactive = 0x6411D76411D7 } } animations { enabled = yes # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default } 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_is_master = true } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = off } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more device:epic mouse V1 { sensitivity = -0.5 } misc { mouse_move_focuses_monitor = false disable_hyprland_logo = true } # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # to force electron applications to use wayland add this to their .desktop file # https://www.reddit.com/r/Fedora/comments/rkzp78/make_chrome_run_on_wayland_permanently/ # --enable-features=UseOzonePlatform --ozone-platform=wayland # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, T, exec, alacritty bind = $mainMod, Q, killactive, bind = $mainMod, M, exit, bind = $mainMod, E, exec, nautilus bind = $mainMod, V, togglefloating, bind = $mainMod, R, exec, wofi --show drun bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = CTRL, TAB, togglegroup, bind = CTRL, SPACE, moveoutofgroup, # Applications bind = $mainMod, SPACE, exec, ~/.config/rofi/launcher.sh bind = $mainMod, TAB, exec, grim -g "$(slurp)" - | wl-copy bind = $mainMod, C, exec, hyprpicker -a # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d # 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 # 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 ```

Bug or Regression?

Bug

Description

the first time I launch applications they tend to open on workspace -1 and I have to kill them and reopen then to get them to open on an actual display

How to reproduce

I think it may be do to my monitor configuration X X X

launch gnome calendar after sleep, launch electron apps after sleep

Crash reports, logs, images, videos

No response

vaxerski commented 6 months ago

firstly, outdated version secondly, you didnt provide a log thirdly, you didnt provide your config lastly, you didn't provide hyprctl clients

odama626 commented 6 months ago

I updated with config and hyprctl clients what log are you interested in seeing?

vaxerski commented 6 months ago

I don't see anything amiss? xwayland windows on workspace -1 are not real windows, it's just an annoying x11 thing.

odama626 commented 6 months ago

next time I am able to reproduce the issue I will share the clients output again

odama626 commented 6 months ago

actually I think I figured it out accidentally, when opening windows it can sometimes take a long time and they don't actually render until you moving one