Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FvwmPager: Use NULL not "" to avoid crashes on some systems. #1020

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/FvwmPager.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,12 @@ the following options.
Change the virtual page and/or desktop currently visible, base on the
location clicked. The exact behavior depends on which _DesktopConfiguration_
is used what mode the pager is in. In general the pager will only change
desk/page if it is absolutely clear which monitor to move to move. The
desk/page if it is absolutely clear which monitor to move. The
behavior for each _DesktopConfiguration_ is:
+
--
* *global*: Clicks on labels or pages will move all monitors to the desktop
and or page clicked.
and/or page clicked.
* *per-monitor*: Clicks on monitor labels will move that monitor to the
corresponding desktop. Clicks on desk labels will do nothing. Clicks on
a page will move the monitor corresponding to the area clicked to that page.
Expand Down
4 changes: 2 additions & 2 deletions modules/FvwmPager/init_pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void initialize_fonts(void)
FlocaleInit(LC_CTYPE, "", "", "FvwmPager");

/* load a default font. */
Scr.Ffont = FlocaleLoadFont(dpy, "", MyName);
Scr.Ffont = FlocaleLoadFont(dpy, NULL, MyName);

/* init our Flocale window string */
FlocaleAllocateWinString(&FwinString);
Expand Down Expand Up @@ -488,7 +488,7 @@ void initialize_balloon_window(void)
if (Balloon.label_format == NULL)
Balloon.label_format = fxstrdup("%i");
if (!Balloon.Ffont)
Balloon.Ffont = FlocaleLoadFont(dpy, "", MyName);
Balloon.Ffont = FlocaleLoadFont(dpy, NULL, MyName);

valuemask = CWOverrideRedirect | CWEventMask | CWColormap;
/* tell WM to ignore this window */
Expand Down
Loading