| CPC G06F 9/451 (2018.02) [G06F 3/0484 (2013.01)] | 11 Claims |

|
1. An electronic device comprising:
a display;
a slidable housing configured to extend the display such that the display on a side is a size that is smaller based on the slidable housing being in a first state as compared to the size of the display based on the slidable housing being in a second state;
memory storing instructions; and
at least one processor,
wherein the instructions, when executed by the at least one processor, cause the electronic device to:
control the display to display a multi-window including a plurality of windows displaying a plurality of execution screens corresponding to a plurality of applications, wherein a first execution screen corresponding to a first application among the plurality of applications is displayed in a first window having a first size, and a second execution screen corresponding to a second application among the plurality of applications is displayed in a second window having a second size that is smaller than the first size;
obtain an event related to the second application, wherein the event comprises at least one of a reception of a text message, a reception of a phone call, a reception of an e-mail, a reception of a messenger message, or a reception of a notification from a social networking service (SNS) application; and
based on obtaining the event related to the second application:
identify whether a state of the slidable housing is changing from the first state to the second state; and
in response to identifying the state of the slidable housing is changing from the first state to the second state:
while the state of the slidable housing is changing from the first state to the second state, change a layout of the multi-window, and
based on the changed layout of the multi-window, display the second execution screen of the second application on a window larger than other windows of the multi-window; and
in response to identifying the state of the slidable housing is maintained, change the window that displays the second execution screen of the second application from the second window to the first window.
|