Bug 1404456 - --geometry argument ignores placement with Wayland
Summary: --geometry argument ignores placement with Wayland
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-terminal
Version: 25
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Debarshi Ray
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-13 21:52 UTC by seth.kriticos
Modified: 2023-04-14 22:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-14 12:29:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.