Merge lp:~markodolar/screenshot-tool/screenshot-tool into lp:~elementary-apps/screenshot-tool/trunk
Proposed by
MarkoD
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Zisu Andrei | ||||
Approved revision: | 249 | ||||
Merged at revision: | 248 | ||||
Proposed branch: | lp:~markodolar/screenshot-tool/screenshot-tool | ||||
Merge into: | lp:~elementary-apps/screenshot-tool/trunk | ||||
Diff against target: |
13 lines (+3/-0) 1 file modified
src/ScreenshotWindow.vala (+3/-0) |
||||
To merge this branch: | bzr merge lp:~markodolar/screenshot-tool/screenshot-tool | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zisu Andrei (community) | code and functionality | Approve | |
Review via email: mp+310711@code.launchpad.net |
Commit message
Listen to structure events
Description of the change
Screenshot Tool didn't receive updates when other windows were resized. This branch adds event mask to all windows so that program receives size (and some other) updates.
More details - if i understood gdk source correctly:
When querying windows first time Window objects are created and Gdk stores them internally. After that they didn't receive any geometry updates. And when you use window get_width() or get_height() you get old values from that internal Gdk list, not directly from X.
To post a comment you must log in.
I confirm this branch fixes the issue, and cannot find any obvious regressions.
There's a comment inline.