Bug 1404456

Summary: --geometry argument ignores placement with Wayland
Product: [Fedora] Fedora Reporter: seth.kriticos
Component: gnome-terminalAssignee: Debarshi Ray <debarshir>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 25CC: debarshir, gerald, mclasen, norman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 12:29:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description seth.kriticos 2016-12-13 21:52:17 UTC
Description of problem:

When running "gnome-terminal --geometry=80x30+200+200", it will use the correct size but display it in the top-left corner. The expected result is to have it displayed at 200px from top and from left.

Version-Release number of selected component (if applicable):

gnome-terminal 3.22.1-1.fc25

Steps to Reproduce:

1. Run "gnome-terminal --geometry=80x30+200+200" in default FC25 session (with Wayland compatible hardware)

Actual results:

Terminal clings to top-left edge.

Expected results:

Terminal goes to where it is told to go.

Comment 1 seth.kriticos 2016-12-13 21:58:41 UTC
Verified that this is a wayland specific gnome-terminal bug with X-Session (where it works fine). In wayland it seems to ignore the placement argument. If there is enough space near to already open windows, it will put the terminal there, otherwise the top-left edge.. certainly not where it's told to go though.

Comment 2 Debarshi Ray 2016-12-14 12:29:35 UTC
Wayland clients do not know their position nor can they request a specific position from the Wayland display server. This is by design.

For gnome-terminal, it means that the gtk_window_move call inside gtk_window_parse_geometry doesn't work.

Comment 3 seth.kriticos 2016-12-14 13:03:07 UTC
Shouldn't the help for gnome-terminal not be updated to reflect this?

Comment 4 seth.kriticos 2016-12-14 13:09:41 UTC
By the way, is there a good write-up regarding window positioning for gnome Wayland? Can't find good info with Google.

Comment 5 Norman Rasmussen 2023-04-14 22:00:41 UTC
fwiw: https://extensions.gnome.org/extension/4736/smart-auto-move/ is one potential solution, and https://extensions.gnome.org/extension/4724/window-calls/ could be used as a wmctrl replacement.