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

REOPENED
Assigned to

Status

()

defect
REOPENED
9 years ago
8 months ago

People

(Reporter: karlt, Assigned: diogogmt)

Tracking

Trunk
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: tpi:-)

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.
gdk_window_get_frame_extents is the function to use here.
(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
Whiteboard: tpi:-
Closing GTK2 related bugs since we removed GTK2 support at the beginning of 2018 in bug 1278282. Probably best to open a new bug in the unlikely event that any of these are still relevant.
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Summary: gtk2/nsWindow::GetScreenBounds returns client window size instead of outer (frame) size → gtk/nsWindow::GetScreenBounds returns client window size instead of outer (frame) size
You need to log in before you can comment on or make changes to this bug.