Skip to content

Commit

Permalink
Fixed other windows to be focusable in transient mode
Browse files Browse the repository at this point in the history
and added print_help_msg for this new -transient-window option.
  • Loading branch information
pijulius committed Jun 9, 2024
1 parent a9bf0e6 commit 5952355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/rofi.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ static void print_main_application_options(int is_term) {
is_term);
print_help_msg("-normal-window", "",
"Behave as a normal window. (experimental)", NULL, is_term);
print_help_msg("-transient-window", "",
"Behave as a modal dialog that is transient to the currently "
"focused window. (experimental)", NULL, is_term);
print_help_msg("-show", "[mode]",
"Show the mode 'mode' and exit. The mode has to be enabled.",
NULL, is_term);
Expand Down
2 changes: 1 addition & 1 deletion source/xcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ gboolean display_late_setup(void) {
// Try to grab the keyboard as early as possible.
// We grab this using the rootwindow (as dmenu does it).
// this seems to result in the smallest delay for most people.
if (find_arg("-normal-window") >= 0) {
if (find_arg("-normal-window") >= 0 || find_arg("-transient-window") >= 0) {
return TRUE;
}
if (find_arg("-no-lazy-grab") >= 0) {
Expand Down

0 comments on commit 5952355

Please sign in to comment.