Always send ConfigureNotifies

ICCCM specifies when the WM has to send a ConfigureNotify. Java does not care
and wants one all the time. Meh.

Fixes: #248
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-02-04 18:21:25 +01:00
parent 6208d46635
commit dfe44a1571
1 changed files with 5 additions and 1 deletions

View File

@ -741,12 +741,17 @@ client_resize_do(client_t *c, area_t geometry, bool force_notice, bool honor_hin
bool send_notice = force_notice; bool send_notice = force_notice;
bool hide_titlebars = c->fullscreen; bool hide_titlebars = c->fullscreen;
screen_t *new_screen = screen_getbycoord(geometry.x, geometry.y); screen_t *new_screen = screen_getbycoord(geometry.x, geometry.y);
bool java_is_broken = true;
if (honor_hints) if (honor_hints)
geometry = client_apply_size_hints(c, geometry); geometry = client_apply_size_hints(c, geometry);
if(c->geometry.width == geometry.width if(c->geometry.width == geometry.width
&& c->geometry.height == geometry.height) && c->geometry.height == geometry.height)
/* We are moving without changing the size, see ICCCM 4.2.3 */
send_notice = true;
if(java_is_broken)
/* Java strong. Java Hulk. Java make own rules! */
send_notice = true; send_notice = true;
/* Also store geometry including border */ /* Also store geometry including border */
@ -779,7 +784,6 @@ client_resize_do(client_t *c, area_t geometry, bool force_notice, bool honor_hin
(uint32_t[]) { real_geometry.x, real_geometry.y, real_geometry.width, real_geometry.height }); (uint32_t[]) { real_geometry.x, real_geometry.y, real_geometry.width, real_geometry.height });
if(send_notice) if(send_notice)
/* We are moving without changing the size, see ICCCM 4.2.3 */
client_send_configure(c); client_send_configure(c);
client_restore_enterleave_events(); client_restore_enterleave_events();