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:
parent
19437930a2
commit
cd63cabadd
|
@ -819,6 +819,7 @@ client_resize_do(client_t *c, area_t geometry, bool force_notice)
|
|||
lua_State *L = globalconf_get_lua_State();
|
||||
bool send_notice = force_notice;
|
||||
bool hide_titlebars = c->fullscreen;
|
||||
bool java_is_broken = true;
|
||||
|
||||
screen_t *new_screen = c->screen;
|
||||
if(!screen_coord_in_screen(new_screen, geometry.x, geometry.y))
|
||||
|
@ -826,6 +827,10 @@ client_resize_do(client_t *c, area_t geometry, bool force_notice)
|
|||
|
||||
if(c->geometry.width == geometry.width
|
||||
&& 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;
|
||||
|
||||
/* Also store geometry including border */
|
||||
|
@ -858,7 +863,6 @@ client_resize_do(client_t *c, area_t geometry, bool force_notice)
|
|||
(uint32_t[]) { real_geometry.x, real_geometry.y, real_geometry.width, real_geometry.height });
|
||||
|
||||
if(send_notice)
|
||||
/* We are moving without changing the size, see ICCCM 4.2.3 */
|
||||
client_send_configure(c);
|
||||
|
||||
client_restore_enterleave_events();
|
||||
|
|
Loading…
Reference in New Issue