Skip to content

Commit

Permalink
empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rjolly committed Dec 10, 2019
1 parent aca5c60 commit 4563b37
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion wm/src/linoleum/wm/WindowManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ private void when(final Event event) {
when_unmap_notify((UnmapNotify) event);
break;
case ConfigureNotify.CODE: // Event.SUBSTRUCTURE_NOTIFY
when_configure_notify((ConfigureNotify) event);
break;
case CreateNotify.CODE: // Event.SUBSTRUCTURE_NOTIFY, ignored
case MappingNotify.CODE: // un-avoidable, ignored TODO
break;
Expand Down Expand Up @@ -294,6 +296,22 @@ private void unmap() {
}
}

private void when_configure_notify(final ConfigureNotify event) {
final WindowManager frame = getFrame(event.window_id);
if (frame != null) {
frame.configure();
}
}

private void configure() {
if (client.early_unmapped || client.early_destroyed) {
return;
}
if (isSelected() && mapped) {
client.set_input_focus();
}
}

private Container getContent() {
return getDesktopPane().getRootPane().getContentPane();
}
Expand Down Expand Up @@ -424,7 +442,6 @@ private void formInternalFrameActivated(javax.swing.event.InternalFrameEvent evt
return;
}
client.raise();
client.set_input_focus();
getOwner().display.flush();
}
}//GEN-LAST:event_formInternalFrameActivated
Expand Down

0 comments on commit 4563b37

Please sign in to comment.