forge-ext / forge

Forge - Tiling and Window Manager for Gnome-Shell
GNU General Public License v3.0
929 stars 49 forks source link

bug: GNOME Terminal window is always about a line shorter than other windows in vertical split #208

Closed alexispurslane closed 1 year ago

alexispurslane commented 1 year ago

Description

I'm having a very strange bug where the GNOME Terminal window is always about a line shorter than other windows (for example Flatseal, Firefox, and LibreWolf) when in a vertical split. I have all three of those installed as Flatpaks, so I thought it might be an issue with the Flatpaks being the wrong size, but Nautilus actually matches their size, and the Flatpak apps' size actually makes more sense gaps-wise, so I think it's the Terminal's size that's wrong.

Problem Explanation

The GNOME Terminal window (and possibly others) is shorter than all other windows.

The bug happens when I vertically split the screen, but not when I split horizontally.

Expected Behavior

When I have a simple split screen between two apps, the windows should be the same height.

Reprodution

How one can find the bug? Split the screen between a regular app and the Terminal on GNOME 44.

Steps To Reproduce

See above

Details

Mark with [ ] all that applies:

It happens with any application?

It happens only on one computer?

It happens only with some specific gnome configuration?

It happens only with some specific extension installed?

Diagnostics

Under what conditions does it happen?

Fill in all information that applies: consistently, every time I do a vertical split. But not a horizontal one!

Environment

Display Setup

Displays:

  1. 1 x 1080p on one laptop, 1x 1080p and 1x 1440p on the other
  2. Both horizontally oriented and 16:9

Screenshots

If applicable, add screenshots to help explain your problem:

LibreWolf vs GNOME Terminal

Screenshot from 2023-04-28 19-48-41

Flatseal vs GNOME Terminal

Screenshot from 2023-04-28 19-50-21

LibreWolf vs Nautilus (the control)

Screenshot from 2023-04-28 19-51-02

Nautilus vs GNOME Terminal

Screenshot from 2023-04-28 19-55-22

GNOME Terminal is the right size when vertically split

![Uploading Screenshot from 2023-04-28 19-57-19.png…]()

Output and Logs

Also if possible, please provide latest logs like:

Gnome Logs (from about ten minutes before and 5 mins after doing a vertical split; most of the log output looks identical, basically repeated variations on this theme):

 28 19:55:46 localhost.localdomain gnome-shell[2155]: Window manager warning: last_user_time (9566111) is greater than comparison timestamp (9566048).  This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW.  Trying to work around...
Apr 28 19:55:46 localhost.localdomain gnome-shell[2155]: Window manager warning: W193 appears to be one of the offending windows with a timestamp of 9566111.  Working around...
Apr 28 19:55:55 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 28 19:57:09 localhost.localdomain gnome-shell[2155]: No listeners 177
Apr 28 19:58:32 localhost.localdomain gnome-shell[2155]: No listeners 177
Apr 28 19:58:56 localhost.localdomain gnome-shell[2155]: No listeners 177
Apr 28 19:59:03 localhost.localdomain gnome-shell[2155]: No listeners 177
Apr 28 19:59:29 localhost.localdomain gnome-shell[2155]: No listeners 177
Apr 28 20:00:35 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 28 20:02:11 localhost.localdomain gnome-shell[2155]: No listeners 177
Apr 28 20:02:51 localhost.localdomain gnome-shell[2155]: Received error from D-Bus search provider org.gnome.Notes.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Apr 28 20:02:52 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 28 20:04:11 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 28 20:05:37 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 28 20:05:40 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 28 20:06:01 localhost.localdomain gnome-shell[2155]: No listeners 177

System from 1 hour ago

Command: journalctl -b 0 -r --since '1 hour ago':

$ journalctl --since=now --follow /usr/bin/gnome-shell
Apr 28 20:08:47 localhost.localdomain systemd[2047]: app-gnome-nautilus-27726.scope: Consume>
Apr 28 20:07:40 localhost.localdomain sudo[31751]: pam_unix(sudo:session): session closed fo>
Apr 28 20:07:35 localhost.localdomain sudo[31751]: pam_unix(sudo:session): session opened fo>
Apr 28 20:07:35 localhost.localdomain sudo[31751]: alexispurslane : TTY=pts/0 ; PWD=/home/al>
Apr 28 20:07:35 localhost.localdomain sudo[31751]: gkr-pam: stashed password to try later in>
Apr 28 20:07:35 localhost.localdomain sudo[31751]: gkr-pam: unable to locate daemon control >
Apr 28 20:06:01 localhost.localdomain systemd[2047]: Started VTE child process 31308 launche>
Apr 28 20:06:01 localhost.localdomain systemd[2047]: Started GNOME Terminal Server.
Apr 28 20:06:01 localhost.localdomain dbus-daemon[2075]: [session uid=1000 pid=2075] Success>
Apr 28 20:06:01 localhost.localdomain systemd[2047]: Starting GNOME Terminal Server...
Apr 28 20:06:01 localhost.localdomain dbus-daemon[2075]: [session uid=1000 pid=2075] Activat>
Apr 28 20:06:01 localhost.localdomain systemd[2047]: Started Application launched by gsd-med>
Apr 28 20:06:01 localhost.localdomain gnome-shell[2155]: No listeners 177
Apr 28 20:05:41 localhost.localdomain eog[31221]: g_signal_handlers_disconnect_matched: asse>
Apr 28 20:05:41 localhost.localdomain eog[31221]: invalid (NULL) pointer instance
Apr 28 20:05:40 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_s>
Apr 28 20:05:38 localhost.localdomain eog[31198]: g_signal_handlers_disconnect_matched: asse>
Apr 28 20:05:38 localhost.localdomain eog[31198]: invalid (NULL) pointer instance
Apr 28 20:05:37 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_s>
Apr 28 20:04:12 localhost.localdomain eog[31012]: g_signal_handlers_disconnect_matched: asse>
Apr 28 20:04:12 localhost.localdomain eog[31012]: invalid (NULL) pointer instance
Apr 28 20:04:11 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_s>
Apr 28 20:03:00 localhost.localdomain gnome-character[30389]: JS LOG: Characters Application>
Apr 28 20:03:00 localhost.localdomain gnome-terminal-[30396]: g_signal_handlers_disconnect_m>
Apr 28 20:03:00 localhost.localdomain gnome-terminal-[30396]: invalid (NULL) pointer instance
Apr 28 20:02:53 localhost.localdomain io.gitlab.librewolf-community.desktop[30508]: [ERROR g>
Apr 28 20:02:53 localhost.localdomain dleyna-renderer-service[30498]: dLeyna: Exit
Apr 28 20:02:52 localhost.localdomain gnome-shell[2155]: meta_window_set_stack_position_no_s>
Apr 28 20:02:51 localhost.localdomain dleyna-renderer-service[30498]: Client :1.589 lost
Apr 28 20:02:51 localhost.localdomain gnome-photos[30394]: g_signal_handlers_disconnect_matc>
Apr 28 20:02:51 localhost.localdomain gnome-photos[30394]: invalid (NULL) pointer instance
Apr 28 20:02:51 localhost.localdomain dleyna-renderer-service[30498]: Calling GetRenderers m>
Apr 28 20:02:51 localhost.localdomain dbus-daemon[2075]: [session uid=1000 pid=2075] Success>
Apr 28 20:02:51 localhost.localdomain dleyna-renderer-service[30498]: Entries: (null)
Apr 28 20:02:51 localhost.localdomain dleyna-renderer-service[30498]: Enabled : F
Apr 28 20:02:51 localhost.localdomain dleyna-renderer-service[30498]: [Network filtering set>
Apr 28 20:02:51 localhost.localdomain dleyna-renderer-service[30498]: Log Level: 0x13
Apr 28 20:02:51 localhost.localdomain dleyna-renderer-service[30498]: Log Type : 0
Apr 28 20:02:51 localhost.localdomain dleyna-renderer-service[30498]: [Logging settings]

Extension Configuration

Command: dconf dump /org/gnome/shell/extensions/forge/

$ dconf dump /org/gnome/shell/extensions/forge/
css-last-update=uint32 37
css-updated='1682618058663'
focus-border-toggle=true
stacked-tiling-mode-enabled=false
tiling-mode-enabled=true
window-gap-hidden-on-single=false
window-gap-size=uint32 4

[keybindings]
con-split-horizontal=['<Super>h']
con-split-layout-toggle=['<Super>s']
window-focus-down=['<Super>Down']
window-focus-left=['<Super>Left']
window-focus-right=['<Super>Right']
window-focus-up=['<Super>Up']
window-move-down=['<Shift><Super>Down']
window-move-left=['<Shift><Super>Left']
window-move-right=['<Shift><Super>Right']
window-move-up=['<Shift><Super>Up']
window-toggle-always-float=['<Shift><Super>g']
window-toggle-float=['<Super>g']

Enabled Extensions (this is reproducible without these extensions though, and I don't think any of them relate to window management)

Command: gnome-extensions list --enabled --details

$ gnome-extensions list --enabled --details
search-light@icedman.github.com
  Name: Search Light
  Description: Take the apps search out of overview
  Path: /home/alexispurslane/.local/share/gnome-shell/extensions/search-light@icedman.github.com
  URL: https://github.com/icedman/search-light
  Version: 11
  State: ENABLED

logomenu@aryan_k
  Name: Logo Menu
  Description: Logo Menu - Menu similar to Apple's macOS menu for the GNOME Desktop
This extension gives a simple menu along with the ability to get the icon of your distro on top left part of the panel for a great look.
The Icon can be customized through settings, it has both Linux and BSD logos.
for more screenshots, visit GitHub.

The default Terminal and Software center can also be changed.

This extension is a fork of - https://github.com/tofutech/tofumenu

The original project is no more supported thus I made this.
  Path: /home/alexispurslane/.local/share/gnome-shell/extensions/logomenu@aryan_k
  URL: https://github.com/Aryan20/Logomenu
  Version: 18
  State: ENABLED

PrivacyMenu@stuarthayhurst
  Name: Privacy Quick Settings Menu
  Description: Add privacy settings toggles to the GNOME system menu
  Path: /home/alexispurslane/.local/share/gnome-shell/extensions/PrivacyMenu@stuarthayhurst
  URL: https://github.com/stuarthayhurst/privacy-menu-extension
  Version: 11
  State: ENABLED

Resource_Monitor@Ory0n
  Name: Resource Monitor
  Description: Monitor the use of system resources like cpu, ram, disk, network and display them in gnome shell top bar.
  Path: /home/alexispurslane/.local/share/gnome-shell/extensions/Resource_Monitor@Ory0n
  URL: https://github.com/0ry0n/Resource_Monitor/
  Version: 19
  State: ENABLED

vertical-workspaces@G-dH.github.com
  Name: V-Shell (Vertical Workspaces)
  Description: Customize your GNOME Shell UX to suit your workflow, whether you like horizontally or vertically stacked workspaces.

Dear users, the reliability and stability of this extension is my priority, if you encounter any problem, first check for conflicts with other extensions and then open an issue on the Github page linked below. Any feedback is greatly appreciated.

V-Shell features:
- vertical or horizontal orientation of workspaces
- customize the overview layout, dimensions and contents
- alternative overview modes with static workspace preview that reduces unnecessary movement on the screen
- wallpaper background with adjustable blur effect in the overview
- dash icon size, content, icon click and scroll behavior
- app grid dimensions, icons size, contents and behavior
- active icons in the folder preview
- close workspace button on workspace thumbnail
- main panel position and visibility
- hot corner/edge position and behavior
- notifications, OSD and workspace switcher popup position
- custom window attention handler behavior
- improved app search provider with custom icon size
- window search provider for quick navigation between windows
- recent files search provider
- static background in the workspace switcher animation outside of the overview
- workspace switcher popup appears even when switching workspace with a gesture
- 4 predefined profiles with different layout and behavior that can be overwritten by your settings
- fixes (works around) several upstream bugs (known and reported)
- modular structure of the V-Shell allows you to disable modules that you don't need or conflicts with other extension that you like better for the task
  Path: /home/alexispurslane/.local/share/gnome-shell/extensions/vertical-workspaces@G-dH.github.com
  URL: https://github.com/G-dH/vertical-workspaces
  Version: 29
  State: ENABLED

gestureImprovements@gestures
  Name: Gesture Improvements
  Description: Improve touchpad gestures for Wayland/X11

This extension adds following features:

• Switch windows from current workspace using 3-finger horizontal swipe
• Cyclic gestures between Desktop/Overview/AppGrid using 4 vertical swipe
• Switch app-pages using 3-finger swipe gesture on AppGrid
• Unmaximize/maximize/fullscreen/half-tiling using 3-finger vertical & horizontal gesture
• Optional minimize a window gesture
• Override 3-finger gesture with 4-finger for switching workspace
• Pinch to show desktop
• Application specific keyboard shortcut based hold-swipe gestures (e.g., navigating browser tabs)
• Configure speed of gestures
• Support for X11

On X11, you need to install https://github.com/harshadgavali/gnome-x11-gesture-daemon

Report any bugs/requests on GitHub (link directly below)

  Path: /home/alexispurslane/.local/share/gnome-shell/extensions/gestureImprovements@gestures
  URL: https://github.com/harshadgavali/gnome-gesture-improvements
  Version: 25
  State: ENABLED

forge@jmmaranan.com
  Name: Forge
  Description: Tiling and window manager for GNOME

CHANGES

 - Quarter tiling, for more information see https://github.com/jmmaranan/forge/issues/166. Can be toggled.

 Please report bugs/issues on https://github.com/jmmaranan/forge/issues
  Path: /home/alexispurslane/.local/share/gnome-shell/extensions/forge@jmmaranan.com
  URL: https://github.com/jmmaranan/forge
  Version: 66
  State: ENABLED

Graphics information

Command: lshw -C display

$ lshw -C display
*-display                 
       description: VGA compatible controller
       product: Skylake GT2 [HD Graphics 520]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
       resources: irq:125 memory:e0000000-e0ffffff memory:d0000000-dfffffff ioport:e000(size=64) memory:c0000-dffff

Monitor information

Command: xrandr --properties | grep -vE '(x|\s|\.|\d)+$'

$ xrandr --properties | grep -vE '(x|\s|\.|\d)+$'
creen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 280mm x 160mm
        supported: 0, 1
   1920x1080     59.96*+
jmmaranan commented 1 year ago

Hi @alexispurslane, this is an issue with gnome-terminal. I use blackbox flatpak app as replacement. See #119. Pop! _OS patched gnome-terminal if you want to use that.

alexispurslane commented 1 year ago

Hi @alexispurslane, this is an issue with gnome-terminal. I use blackbox flatpak app as replacement. See #119. Pop! _OS patched gnome-terminal if you want to use that.

Alright, I'll take a look, thank you!