Skip to content

Commit

Permalink
#117 disallow moving windows to a fullscreen space
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Jul 12, 2019
1 parent 8a5c330 commit 740ca5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/window_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,9 @@ void window_manager_send_window_to_display(struct space_manager *sm, struct wind
{
uint64_t src_sid = window_space(window);
uint64_t dst_sid = display_space_id(did);

if (src_sid == dst_sid) return;
if (space_is_fullscreen(dst_sid)) return;

struct view *view = window_manager_find_managed_window(wm, window);
if (view) {
Expand Down Expand Up @@ -1123,7 +1125,9 @@ void window_manager_send_window_to_display(struct space_manager *sm, struct wind
void window_manager_send_window_to_space(struct space_manager *sm, struct window_manager *wm, struct window *window, uint64_t dst_sid)
{
uint64_t src_sid = window_space(window);

if (src_sid == dst_sid) return;
if (space_is_fullscreen(dst_sid)) return;

struct view *view = window_manager_find_managed_window(wm, window);
if (view) {
Expand Down

0 comments on commit 740ca5d

Please sign in to comment.