all repos — openbox @ 39f19f427b68058b00e17ac972c5d9dfbda8c2e0

openbox fork - make it a bit more like ryudo

watch for multiple map requests on the same window. ignore after the first.
Dana Jansens danakj@orodu.net
commit

39f19f427b68058b00e17ac972c5d9dfbda8c2e0

parent

406c79aea1b6f9c8bd1bbeb253ebc7cb97fc7e25

1 files changed, 8 insertions(+), 2 deletions(-)

jump to
M src/screen.ccsrc/screen.cc

@@ -589,7 +589,7 @@ // unfocus the client (calls the focus callbacks)

client->unfocus(); #ifdef DEBUG - printf("Unmanaged window 0x%lx frame %lx\n", client->window(), framewin); + printf("Unmanaged window 0x%lx frame 0x%lx\n", client->window(), framewin); #endif delete client;

@@ -775,7 +775,13 @@ #ifdef DEBUG

printf("MapRequest for 0x%lx\n", e.window); #endif // DEBUG - manageWindow(e.window); + Client *c = openbox->findClient(e.window); + if (c) { +#ifdef DEBUG + printf("DEBUG: MAP REQUEST CAUGHT IN SCREEN. IGNORED.\n"); +#endif + } else + manageWindow(e.window); } }