An electronic device (101, 201, 600) comprising: a display (160, 260, 450, 660, 701) configured to display a user interface, wherein the display comprises a touch screen configured to receive a touch input; a memory (130, 230); and a processor (120, 210) functionally connected with the display and the memory, wherein the processor is configured to: set a touch blocking region in an edge region of the display; determine an independent window enabling a touch input in a user interface other than a full screen window displayed on the display, wherein the independent window is independent of a home screen; determine an exception region in the touch blocking region, based on: the independent window not being the full screen window, the independent window being configured to receive a touch input, and the independent window overlapping the touch blocking region; set a final touch blocking region by removing the determined exception region from the touch blocking region; disregard a touch input if the final touch blocking region receives the touch input; and process a touch input if the exception region receives the touch input, wherein a position of the exception region corresponds to a position of the independent window. a display (160, 260, 450, 660, 701) configured to display a user interface, wherein the display comprises a touch screen configured to receive a touch input; a memory (130, 230); and a processor (120, 210) functionally connected with the display and the memory, wherein the processor is configured to: set a touch blocking region in an edge region of the display; determine an independent window enabling a touch input in a user interface other than a full screen window displayed on the display, wherein the independent window is independent of a home screen; determine an exception region in the touch blocking region, based on: the independent window not being the full screen window, the independent window being configured to receive a touch input, and the independent window overlapping the touch blocking region; set a final touch blocking region by removing the determined exception region from the touch blocking region; disregard a touch input if the final touch blocking region receives the touch input; and process a touch input if the exception region receives the touch input, wherein a position of the exception region corresponds to a position of the independent window. set a touch blocking region in an edge region of the display; determine an independent window enabling a touch input in a user interface other than a full screen window displayed on the display, wherein the independent window is independent of a home screen; determine an exception region in the touch blocking region, based on: the independent window not being the full screen window, the independent window being configured to receive a touch input, and the independent window overlapping the touch blocking region; the independent window not being the full screen window, the independent window being configured to receive a touch input, and the independent window overlapping the touch blocking region; set a final touch blocking region by removing the determined exception region from the touch blocking region; disregard a touch input if the final touch blocking region receives the touch input; and process a touch input if the exception region receives the touch input, wherein a position of the exception region corresponds to a position of the independent window.