]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Account for GtkApplicationWindow menu bar in geometry hints.
authorSimon Tatham <anakin@pobox.com>
Mon, 4 Apr 2016 10:28:34 +0000 (11:28 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 4 Apr 2016 10:37:07 +0000 (11:37 +0100)
commit4f904fcd154fccbe99f3e58c4c2c0c3a24976122
treefdf29ae6aa8b18d11f5ad79f00d5b474ae237ef7
parent8fd67a9c46cc175640bf51a0ac7e1e52c8745371
Account for GtkApplicationWindow menu bar in geometry hints.

This is another widget that can appear in the top-level window, in
addition to the drawing area and scrollbar we put there ourselves, and
hence which needs to be accounted for when figuring out the
relationship between the drawing area size in character cells and the
full window size in pixels.

Finding the menu bar widget itself is a bit of a hassle, but having
found it, dealing with it is basically the same as dealing with the
scrollbar, only with x and y swapped.
unix/gtkwin.c