File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 23
23
#include "toplevel.h"
24
24
#include "src/server.h"
25
25
#include "src/workspace.h"
26
+ #include "wlr/util/log.h"
26
27
#include <stdlib.h>
27
28
#include <wlr/types/wlr_cursor.h>
28
29
#include <wlr/types/wlr_scene.h>
@@ -134,7 +135,7 @@ void xdg_toplevel_unmap(struct wl_listener *listener, void *data) {
134
135
/* Called when the surface is unmapped, and should no longer be shown. */
135
136
struct turtile_toplevel * toplevel = wl_container_of (listener , toplevel , unmap );
136
137
137
- /* Reset the cursor mode if the grabbed toplevel was unmapped. */
138
+ /* Reset the cursor mode and focus if the grabbed toplevel was unmapped. */
138
139
if (toplevel == toplevel -> server -> grabbed_toplevel ) {
139
140
reset_cursor_mode (toplevel -> server );
140
141
@@ -143,6 +144,7 @@ void xdg_toplevel_unmap(struct wl_listener *listener, void *data) {
143
144
}
144
145
145
146
wl_list_remove (& toplevel -> link );
147
+ wl_list_remove (& toplevel -> flink );
146
148
}
147
149
148
150
void xdg_toplevel_commit (struct wl_listener * listener , void * data ) {
You can’t perform that action at this time.
0 commit comments