Take desktop panels into account when sizing frames so they fit on the screen.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 15 Jan 2010 17:04:14 +0000 (18:04 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 15 Jan 2010 17:04:14 +0000 (18:04 +0100)
commitf0d138880a572e2b064d5af2668cd3a54a1d0a1e
tree2937eecd09b8c970643b7bf275c3fda028e7e6d6
parent6554a5df3a807911922673bc46b1b74fb16c6087
Take desktop panels into account when sizing frames so they fit on the screen.

xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
(Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
to find out usable size of the desktop.  Don't make frames larger than
this. Bug #3643.
src/ChangeLog
src/xfns.c