the inner border's corners weren't having events handled on them correctly, which was messing with resizing. yay akk for finding this.
This commit is contained in:
parent
d122c973ca
commit
2b5d4b6997
1 changed files with 12 additions and 0 deletions
|
@ -1007,6 +1007,10 @@ void frame_grab_client(ObFrame *self)
|
|||
g_hash_table_insert(window_map, &self->innertop, self->client);
|
||||
g_hash_table_insert(window_map, &self->innerright, self->client);
|
||||
g_hash_table_insert(window_map, &self->innerbottom, self->client);
|
||||
g_hash_table_insert(window_map, &self->innerblb, self->client);
|
||||
g_hash_table_insert(window_map, &self->innerbll, self->client);
|
||||
g_hash_table_insert(window_map, &self->innerbrb, self->client);
|
||||
g_hash_table_insert(window_map, &self->innerbrr, self->client);
|
||||
g_hash_table_insert(window_map, &self->title, self->client);
|
||||
g_hash_table_insert(window_map, &self->label, self->client);
|
||||
g_hash_table_insert(window_map, &self->max, self->client);
|
||||
|
@ -1087,6 +1091,10 @@ void frame_release_client(ObFrame *self)
|
|||
g_hash_table_remove(window_map, &self->innertop);
|
||||
g_hash_table_remove(window_map, &self->innerright);
|
||||
g_hash_table_remove(window_map, &self->innerbottom);
|
||||
g_hash_table_remove(window_map, &self->innerblb);
|
||||
g_hash_table_remove(window_map, &self->innerbll);
|
||||
g_hash_table_remove(window_map, &self->innerbrb);
|
||||
g_hash_table_remove(window_map, &self->innerbrr);
|
||||
g_hash_table_remove(window_map, &self->title);
|
||||
g_hash_table_remove(window_map, &self->label);
|
||||
g_hash_table_remove(window_map, &self->max);
|
||||
|
@ -1459,6 +1467,10 @@ ObFrameContext frame_context(ObClient *client, Window win, gint x, gint y)
|
|||
if (win == self->innerleft) return OB_FRAME_CONTEXT_LEFT;
|
||||
if (win == self->innerbottom) return OB_FRAME_CONTEXT_BOTTOM;
|
||||
if (win == self->innerright) return OB_FRAME_CONTEXT_RIGHT;
|
||||
if (win == self->innerbll) return OB_FRAME_CONTEXT_BLCORNER;
|
||||
if (win == self->innerblb) return OB_FRAME_CONTEXT_BLCORNER;
|
||||
if (win == self->innerbrr) return OB_FRAME_CONTEXT_BRCORNER;
|
||||
if (win == self->innerbrb) return OB_FRAME_CONTEXT_BRCORNER;
|
||||
if (win == self->max) return OB_FRAME_CONTEXT_MAXIMIZE;
|
||||
if (win == self->iconify) return OB_FRAME_CONTEXT_ICONIFY;
|
||||
if (win == self->close) return OB_FRAME_CONTEXT_CLOSE;
|
||||
|
|
Loading…
Reference in a new issue