! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-terminal doesn't honor -geometry positioning
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Kevin Fenzi 2016-08-25 22:06:59 CEST
Downstream bug: 

https://bugzilla.redhat.com/show_bug.cgi?id=1369939

Description of problem:

Cannot place window in specific position any longer using --geometry

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

xfce4-terminal-0.6.90-1.fc24.x86_64

How reproducible:

xfce4-terminal --geometry=113x56-66+33 used to place the terminal window about halfway from left, now places it at top left.

Window placement positions were derived from xwininfo.

Steps to Reproduce:
1. xfce4-terminal --geometry=113x56-66+33
2.
3.

Actual results:

Incorrect location.

Expected results:

Terminal window to be placed in position desired.

Additional info:

This worked until the latest update.
Comment 1 Igor editbugs 2016-08-26 10:36:05 CEST
Hi Kevin,
Is the reporter also using wayland instead of X? I cannot find this info in the downstream bug report.

The thing is that the positioning should work under X, and is actually working on my Arch Linux system as well as on Debian 8 with Xfce.
Comment 2 Igor editbugs 2016-08-26 12:31:55 CEST
Actually, I have improved handling of the negative x/y offsets in the git version.
I've tested the change on Fedora 24 in VM (Gnome, X, no wayland) and it's working as expected - e.g. '--geometry=-10-10' will place bottom right corner of the terminal window 10 pixels upper and 10 pixels to the left from the top right corner of the screen.
Comment 3 Kevin Fenzi 2016-08-26 17:35:56 CEST
Yeah, to be clear it was just the -offsets, the + ones are working as expected. ;) 

Thanks for the quick fix!
Comment 4 Igor editbugs 2016-08-26 17:41:09 CEST
Dit it resolve the issue for you?
Comment 5 Kevin Fenzi 2016-08-26 17:46:04 CEST
I've not built from git yet, but I can try and do so later today...
Comment 6 Kevin Fenzi 2016-08-28 21:01:37 CEST
I can't seem to get git head to build here... 

"make[3]: Leaving directory '/builddir/build/BUILD/xfce4-terminal-0cd51a5290b917c5662abe4313b213a7e826fffe/terminal'
make[3]: *** No rule to make target 'terminal-enum-types.c', needed by 'xfce4_terminal-terminal-enum-types.o'.  Stop.
make[2]: *** [all] Error 2"

https://kojipkgs.fedoraproject.org//work/tasks/7950/15417950/build.log

Will poke around in case it's something dumb I am doing...
Comment 7 Igor editbugs 2016-08-29 10:07:41 CEST
(In reply to Kevin Fenzi from comment #6)
> I can't seem to get git head to build here... 
> 
> "make[3]: Leaving directory
> '/builddir/build/BUILD/xfce4-terminal-
> 0cd51a5290b917c5662abe4313b213a7e826fffe/terminal'
> make[3]: *** No rule to make target 'terminal-enum-types.c', needed by
> 'xfce4_terminal-terminal-enum-types.o'.  Stop.
> make[2]: *** [all] Error 2"
> 
> https://kojipkgs.fedoraproject.org//work/tasks/7950/15417950/build.log
> 
> Will poke around in case it's something dumb I am doing...

Have you run `configure` before `make`?

A reference to how 0.6.90 can be built on Arch: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=xfce4-terminal-devel
Comment 8 Igor editbugs 2016-08-31 12:50:42 CEST
Version 0.6.91 will contain the fix.
Comment 10 Kevin Fenzi 2016-08-31 18:41:21 CEST
This seems to fix this issue (the -offsets), but it seems to break widthxheight. 

It seems like it sets the widthxheight for a second here, then it switches to 80x23 or something. ie, 

xfce4-terminal --geometry=100x50

isn't honored. 

Also, all my saved terminal sizes in my session reset to 80x23 when I login. 

Should I file a new bug on this?
Comment 11 Igor editbugs 2016-08-31 21:16:17 CEST
(In reply to Kevin Fenzi from comment #10)
> This seems to fix this issue (the -offsets), but it seems to break
> widthxheight. 
> 
> It seems like it sets the widthxheight for a second here, then it switches
> to 80x23 or something. ie, 
> 
> xfce4-terminal --geometry=100x50
> 
> isn't honored. 
> 
> Also, all my saved terminal sizes in my session reset to 80x23 when I login. 
> 
> Should I file a new bug on this?

Hmm, this is not the case for me under X, will check wayland tomorrow.
Please open another bug. Thanks.
Comment 12 Kevin Fenzi 2016-08-31 23:22:11 CEST
To be clear this was under a normal Xfce/X session, not wayland. 

Will file a new bug soon here.

Bug #12791

Reported by:
Kevin Fenzi
Reported on: 2016-08-25
Last modified on: 2016-09-02

People

CC List:
2 users

Version

Version:
0.6.90

Attachments

Additional information