Skip to content

Commit f55b433

Browse files
committed
Fixed inline replies not displaying and not grabbing keyboard input in CC. Fixes #542
1 parent 6d5077e commit f55b433

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/controlCenter/controlCenter.vala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ namespace SwayNotificationCenter {
257257
}
258258

259259
private bool key_press_event_cb (uint keyval, uint keycode, Gdk.ModifierType state) {
260-
if (this.get_focus () is Gtk.Entry) return false;
260+
if (get_focus () is Gtk.Text) {
261+
return false;
262+
}
261263
var children = list_box_controller.get_children ();
262264
var group = (NotificationGroup) list_box.get_focus_child ();
263265
switch (Gdk.keyval_name (keyval)) {

src/notification/notification.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ namespace SwayNotificationCenter {
535535
// supports ON_DEMAND layer shell keyboard interactivity
536536
if (!ConfigModel.instance.notification_inline_replies
537537
|| (ConfigModel.instance.layer_shell
538-
&& swaync_daemon.has_layer_on_demand
538+
&& !swaync_daemon.has_layer_on_demand
539539
&& notification_type == NotificationType.POPUP)) {
540540
return;
541541
}

0 commit comments

Comments
 (0)