Skip to content

Commit

Permalink
Always add full screen selection in Xinerama, fixes #59
Browse files Browse the repository at this point in the history
  • Loading branch information
daf committed Nov 25, 2015
1 parent 4a5699a commit 532d5fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/SetBG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1017,10 +1017,8 @@ std::map<Glib::ustring, Glib::ustring> SetBGXinerama::get_active_displays()
{
std::map<Glib::ustring, Glib::ustring> map_displays;

// if at least 2 screens, add the full screen
// reason being if xinerama on but only one screen, full screen is the same as the first display
if (this->xinerama_num_screens > 1)
map_displays[this->get_fullscreen_key()] = _("Full Screen");
// always add full screen as we need the -1 key always
map_displays[this->get_fullscreen_key()] = _("Full Screen");

// add individual screens
for (int i=0; i < xinerama_num_screens; i++) {
Expand Down

0 comments on commit 532d5fd

Please sign in to comment.