Skip to content

Commit 8a2ca36

Browse files
committed
filtering on application was too broad, fix the relevant code
1 parent e43b62d commit 8a2ca36

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

unix/event.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,10 +1665,12 @@ handle_stackable_configure_event( Handle self, XWindow win, XEvent *ev)
16651665
XX-> ackSize. y = ev-> xconfigure. height;
16661666
}
16671667
} else {
1668-
XX-> ackOrigin. x = ev-> xconfigure. x;
1669-
XX-> ackOrigin. y = X(X(self)-> owner)-> ackSize. y - ev-> xconfigure. height - ev-> xconfigure. y;
1670-
XX-> ackSize. x = ev-> xconfigure. width;
1671-
XX-> ackSize. y = ev-> xconfigure. height;
1668+
if ( X(self)->owner) {
1669+
XX-> ackOrigin. x = ev-> xconfigure. x;
1670+
XX-> ackOrigin. y = X(X(self)-> owner)-> ackSize. y - ev-> xconfigure. height - ev-> xconfigure. y;
1671+
XX-> ackSize. x = ev-> xconfigure. width;
1672+
XX-> ackSize. y = ev-> xconfigure. height;
1673+
}
16721674
XX-> flags. configured = 1;
16731675
}
16741676
}
@@ -1830,7 +1832,7 @@ prima_handle_event( XEvent *ev, XEvent *next_event)
18301832
((ev-> type >= LASTEvent) ? "?" : xevdefs[ev-> type]),
18311833
self ? PWidget(self)-> name : "(NULL)");
18321834

1833-
if (!self || self == prima_guts.application)
1835+
if (!self)
18341836
return;
18351837
if ( XT_IS_MENU(X(self))) {
18361838
prima_handle_menu_event( ev, win, self);

0 commit comments

Comments
 (0)