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

Fix compile failure with --disable-xinerama #84

Merged
merged 1 commit into from
Nov 19, 2016
Merged

Fix compile failure with --disable-xinerama #84

merged 1 commit into from
Nov 19, 2016

Commits on Nov 18, 2016

  1. Fix compile failure with --disable-xinerama

    ```
    main.cc: In function ‘int set_bg_once(Config*, SetBG*, Glib::ustring, int, SetBG::SetMode, bool, Gdk::Color, bool)’:
    main.cc:49:40: warning: left operand of comma operator is a reference, not call, to function ‘Glib::file_test’ [-Waddress]
                 if (Glib::file_test, Glib::FILE_TEST_IS_DIR) {
                                            ^
    main.cc:49:40: warning: left operand of comma operator has no effect [-Wunused-value]
    main.cc: In function ‘int main(int, char**)’:
    main.cc:150:26: error: expected type-specifier before ‘SetBGXinerama’
                 setter = new SetBGXinerama();
                              ^
    main.cc:152:13: error: ‘XineramaScreenInfo’ was not declared in this scope
                 XineramaScreenInfo *xinerama_info;
                 ^
    main.cc:152:33: error: ‘xinerama_info’ was not declared in this scope
                 XineramaScreenInfo *xinerama_info;
                                     ^
    main.cc:156:106: error: ‘XineramaQueryScreens’ was not declared in this scope
              xinerama_info = XineramaQueryScreens(GDK_DISPLAY_XDISPLAY(dpy->gobj()), &xinerama_num_screens);
                                                                                                           ^
    main.cc:157:15: error: ‘SetBGXinerama’ was not declared in this scope
                 ((SetBGXinerama*)setter)->set_xinerama_info(xinerama_info, xinerama_num_screens);
                   ^
    main.cc:157:29: error: expected primary-expression before ‘)’ token
                 ((SetBGXinerama*)setter)->set_xinerama_info(xinerama_info, xinerama_num_screens);
                                 ^
    main.cc:157:30: error: expected ‘)’ before ‘setter’
                 ((SetBGXinerama*)setter)->set_xinerama_info(xinerama_info, xinerama_num_screens);
                                  ^
    ```
    jer-gentoo authored Nov 18, 2016
    Configuration menu
    Copy the full SHA
    3b042a2 View commit details
    Browse the repository at this point in the history