-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -819,13 +819,18 @@ 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; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
psychon
Author
Member
|
||
|
||
screen_t *new_screen = c->screen; | ||
if(!screen_coord_in_screen(new_screen, geometry.x, geometry.y)) | ||
new_screen = screen_getbycoord(geometry.x, geometry.y); | ||
|
||
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(); | ||
|
Haha.. :)
Could this somehow detect a (broken) Java client?
If I understand it correctly, it now does extra things all the time - to work around the Java Hulk?!