gtk2/nsWindow::GetScreenBounds returns client window size instead of outer (frame) size

NEW
Assigned to

Status

()

8 years ago
2 years ago

People

(Reporter: karlt, Assigned: diogogmt)

Tracking

Trunk
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: tpi:-)

(Reporter)

Description

8 years ago
nsIWidget::GetScreenBounds should return the "widget's outside dimensions in global coordinates. This includes any title bar on the window."

Correcting this will make test_screenPersistence.xul at least correctly notice that windows created with outer dimensions have the wrong size.

test_screenPersistance.xul will also fail because it opens a window with (inner, I assume) width/height = 300 and expects outerWidth/outerHeight to be 300.
(Reporter)

Comment 1

8 years ago
gdk_window_get_frame_extents is the function to use here.
(Reporter)

Comment 2

8 years ago
(In reply to comment #0)
> Correcting this will make test_screenPersistence.xul at least correctly notice
> that windows created with outer dimensions have the wrong size.

Filed Bug 581866.
Assignee: nobody → diogo.gmt

Updated

2 years ago
Whiteboard: tpi:-
You need to log in before you can comment on or make changes to this bug.